Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member This forum account has been confirmed by cPanel staff to represent a vendor. Radio_Head's Avatar
    Join Date
    Feb 2002
    Posts
    2,064

    Default Parsing .html files as .php inside Cpanel skin

    On my Cpanel skin I need to parse html files as .php .

    I added following .htaccess

    AddType application/x-httpd-php .html
    AddType application/x-httpd-php .htm

    but html are still not parsed as php .

    Any idea to solve this ?

    Thanks
    Stop SPAM & VIRUS :: ASSP Deluxe for cPanel http://www.grscripts.com
    █ ASSP Deluxe is supported by Fritz Borgstedt,ASSP main developer.

  2. #2
    Member bmcpanel's Avatar
    Join Date
    Jun 2002
    Posts
    546

    Default

    Yes, this would be nice to know.

  3. #3
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Could you not make the file .php and then add
    &?php
    ?&

    to the top and bottom of the file?

    Or does it have to stay .html .htm ?
    Regards,
    David
    Forum Moderator

  4. #4
    Member This forum account has been confirmed by cPanel staff to represent a vendor. Radio_Head's Avatar
    Join Date
    Feb 2002
    Posts
    2,064

    Default

    [quote:ebfe17ec3e][i:ebfe17ec3e]Originally posted by dgbaker[/i:ebfe17ec3e]

    Could you not make the file .php and then add
    &?php
    ?&

    to the top and bottom of the file?

    Or does it have to stay .html .htm ?


    [/quote:ebfe17ec3e]

    Is not more easy parse files instead of renaming 100 files ?
    Stop SPAM & VIRUS :: ASSP Deluxe for cPanel http://www.grscripts.com
    █ ASSP Deluxe is supported by Fritz Borgstedt,ASSP main developer.

  5. #5
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Sorry, did not realize you had that many to do.
    Regards,
    David
    Forum Moderator

  6. #6
    Member This forum account has been confirmed by cPanel staff to represent a vendor. Radio_Head's Avatar
    Join Date
    Feb 2002
    Posts
    2,064

    Default

    [quote:ccc49c2774][i:ccc49c2774]Originally posted by dgbaker[/i:ccc49c2774]

    Sorry, did not realize you had that many to do. [/quote:ccc49c2774]

    I am realizing a php/mysql cpanel , every data entered will be checked .
    Stop SPAM & VIRUS :: ASSP Deluxe for cPanel http://www.grscripts.com
    █ ASSP Deluxe is supported by Fritz Borgstedt,ASSP main developer.

  7. #7
    cPanel Verified Vendor This forum account has been confirmed by cPanel staff to represent a vendor.
    Join Date
    Aug 2001
    Location
    All over Europe
    Posts
    407

    Default

    Some cpanel files must stay &html& as they are called directly via cpanel: counter and filemanager functions for example have all links hardcoded into cpanel. If Radio_Head wants to add php functionality to cpanel, then he/she needs to parse html as php. Good luck!

    kosmo
    http://netenberg.com/
    AccountLab Plus Affordable professional webhosting billing
    Click Be! Building websites as easy as it click be
    Fantastico De Luxe - Install your favourite scripts at a mouse click
    Universina - The CPanel skin with Heart and Soul

  8. #8
    Member This forum account has been confirmed by cPanel staff to represent a vendor. Radio_Head's Avatar
    Join Date
    Feb 2002
    Posts
    2,064

    Default

    [quote:75f01572de][i:75f01572de]Originally posted by kosmo[/i:75f01572de]

    Some cpanel files must stay &html& as they are called directly via cpanel: counter and filemanager functions for example have all links hardcoded into cpanel. If Radio_Head wants to add php functionality to cpanel, then he/she needs to parse html as php. Good luck!

    kosmo[/quote:75f01572de]

    Yes , I know some file need html (but only a 5% need it ) ; I am working on this project from about 40 days now . I have to complete the script section and I have finished.
    Stop SPAM & VIRUS :: ASSP Deluxe for cPanel http://www.grscripts.com
    █ ASSP Deluxe is supported by Fritz Borgstedt,ASSP main developer.

  9. #9
    Member
    Join Date
    Dec 2002
    Posts
    17

    Default

    &Some cpanel files must stay &html& as they are called directly via cpanel&


    good to know, thanks for the heads up, although I think I'll solve this problem, when I come to it, with PHP include()s and/or symbolic links
    Get the Skinny - Cpanel Skinning Documentation Project
    http://gwsa.net/skinny

  10. #10
    Member tomakaze's Avatar
    Join Date
    Oct 2004
    Location
    Toronto, CA / Helsinki, FI
    Posts
    9

    Default

    It seems to me that it is impossible to parse html as php, because cpanel uses it's own apache configuration which is encrypted...

    am I wrong?

    I have html parsing php on my server already, but it does not affect cPanel at all.

Similar Threads & Tags
Similar threads

  1. Parsing html as php - security issues?
    By morrow95 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-18-2011, 08:43 AM
  2. SuPHP Question - making .html files behave as .php files
    By Doug E in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-02-2010, 09:47 AM
  3. parsing php into html
    By monckey100 in forum Database Discussions
    Replies: 10
    Last Post: 09-18-2009, 07:12 PM
  4. Cpanel stopped parsing php files
    By joana in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-22-2002, 11:06 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube