| Welcome to WebmasterWorld Guest from 184.108.40.206 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|How can I process .html files like .php files?|
I need to process .html files like php files..
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?
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.
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 :)
You don't have to place it anywhere in Cpanel. You need to place it in your .htaccess file.
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