Hi all, I've installed PHP4 on a RedHat 6.1 installation with Apache 1.3.12 without what I believed any errors. The application type is listed in the MIME type, the mod_php4.c module is listed as being compiled into the main executable. Unfortunatly though the server responds great when using files with the PHP extension it will not parse any PHP <?> tags in standard HTML files. It's like they are invisible. What did I leave out? I've looked through several sites, documents and FAQ's but to no avail. Can anyone help me out? Please! Thanks!
If you want PHP to parse html files you need to tell apache this, otherwise it won't bother using php.exe.
I imagine that you'll need to create another application-type like.....
AddType application/x-httpd-php3 .html
or something like that.
hth scott d~
Thank you! Very much appreciated! It's works like a charm now!
This works, but it's NOT what you want.
This makes the webserver parse EVERY html file through PHP, which gives you a large and useless server load.
Search the forum for more sophisticated methods!
I looked throughout the forums and on other sites before posting my question here.