Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

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)

10+ Year Member

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)

WebmasterWorld Senior Member marcia is a WebmasterWorld Top Contributor of All Time 10+ Year Member

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)

10+ Year Member

Thanks Marcia

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)

10+ Year Member

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)

10+ Year Member

I did the same thing but through CPanel.
I clicked on the "Apache Handlers" icon then typed in "application/x-httpd-php" for html.

Featured Threads

Hot Threads This Week

Hot Threads This Month