![]() |
|
|
|
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| PHP / MySQL Assistance We understand. Not all of you are experienced programmers, but some of you are highly skilled at coding. So we've set aside this forum so you can ask questions, and provide answers to the most commonly asked PHP / MySQL issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
All,
On an old host, I set up my files so that I could include PHP code in .html files. To do this, I used the following code in .htaccess: <Files *.html> ForceType application/x-httpd-php </Files> RemoveHandler .html .htm AddHandler application/x-httpd-php .html When I put this in the .htaccess file on the Hostican server, though, I view source on the page and see the PHP statements (it's not translating the PHP). Any ideas? |
|
||||
|
Hollywood, Welcome to the HostICan Community:
HostICan - Support - Pre-Sales, E-Mail, and so many more answers... :: How do I make PHP work in .html?
__________________
Thanks, Denis Motova Affiliate / Operations Manager HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket. |
|
||||
|
Have you tried:
AddHandler application/x-httpd-php5 .html <-- that should work
__________________
Thanks, Denis Motova Affiliate / Operations Manager HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|