| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
|Subscribe and Support WebmasterWorld|
|How can I process .html files like .php files?|
I need to process .html files like php files..
| 11:54 am on Jul 24, 2004 (gmt 0)|
I need to place php script in .html files and have the server process them like .php files. I only have access to the control panel (CPanel). Is that possible?
| 3:11 pm on Jul 24, 2004 (gmt 0)|
I've just gotten finished moving a site and it just resolved - and I just got done setting up this very thing. It's got Cpanel with this as default
AddType application/x-httpd-php .html .php .htm
A PHP include didn't work with just that so I added this and it's working just fine on .html pages
AddHandler application/x-httpd-php .html .php
MIght be more than needed, but that's what I found when looking up what to do.
| 5:10 am on Jul 26, 2004 (gmt 0)|
Where in the Cpanel do I add the above mentioned lines. I am new to PHP and so I would appreciate any help I can get :)
| 11:55 am on Jul 26, 2004 (gmt 0)|
You don't have to place it anywhere in Cpanel. You need to place it in your .htaccess file.
| 1:40 am on Jul 27, 2004 (gmt 0)|
I did the same thing but through CPanel.
I clicked on the "Apache Handlers" icon then typed in "application/x-httpd-php" for html.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved