homepage Welcome to WebmasterWorld Guest from 54.197.111.87
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
How can I process .html files like .php files?
I need to process .html files like php files..
epsrx




msg:1302639
 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?

Cheers,
EPSRX

 

Marcia




msg:1302640
 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.

epsrx




msg:1302641
 5:10 am on Jul 26, 2004 (gmt 0)

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 :)

coho75




msg:1302642
 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.

Scott




msg:1302643
 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved