| Welcome to WebmasterWorld Guest from 22.214.171.124 |
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
|Subscribe to 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 is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved