Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux help

Status
Not open for further replies.

VBMan

Programmer
Jul 1, 2000
49
US
What lines would I have to add to httpd.conf to get it to parse PHP in a html file?

~Ben

P.S

System is RH 7
PHP 4
MYSQL

 

That doesn't have what i wish to add. I want to simply add a line that when PHP is found in a HTML file (ex. index.html) that it parses it. I already have httpd.conf setup to parse .php files, and to set the type a php. Thats all I need.

~Ben

P.S.
I'm not really sure but i think their might be a difference in the httpd.conf files between windows and linux.
 
Oh I see... sorry, I misunderstood the question.

I did not know that this was possible. And I would also like to know if it is... could be useful.

Sorry I couldn't help.
 
It's almost too simple: next to the line that has

Code:
AddType application/x-httpd-php .php

just add

Code:
AddType application/x-httpd-php .html
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top