Entry
How can you set up PHP to run in files with no extension like file, instead of file.php?
Jul 5th, 2000 11:01
Dan Thies, unknown unknown, dayatra shands, Mike Harrison,
Somewhere on your system (or your ISP account) you should have
a .htaccess file. Should be in your main
directory. Edit it to say something like :
AddType application/x-httpd-php3 .html .htm
This will allow all the .html files to be put through the preprocessor,
and it will honor any php statements in the .html file.
To force all files to be handled by the PHP processor, use:
ForceType application/x-httpd-php3
in .htaccess or httpd.conf