Parsing .html files as .php inside Cpanel skin

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
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
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
[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 ?
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
[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 .
 

kosmo

Well-Known Member
Verifed Vendor
Aug 12, 2001
400
0
316
All over Europe
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
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
[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.
 

lammadog

Member
Dec 21, 2002
17
0
151
&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 ;)
 

tomakaze

Member
Oct 12, 2004
9
0
151
Toronto, CA / Helsinki, FI
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.