Forum Moderators: coopster
Here is my .htaccess file:
AddType application/x-httpd-php .php .shtml .htm .html
it doesn't parse the php part, source code looks like:
<html>
<body>
<?php
echo 'test';
?>
</body>
</html>
I have turned off SSI - made no difference.
Any help is appreciated on this. Thanks. I am completely and utterly stumped and have read many php html posts.
[edited by: jatar_k at 3:33 pm (utc) on May 13, 2005]
[edit reason] no urls thanks [/edit]
Are you running a Win server, or Linux or what?
When you do get it up and running, the necessary lines will have been added to your conf file, and you'll want to edit the conf file to add
.html and .shtml to the PHP AddType line, save the conf file and restart your server to get them in there. BTW, in a Win installation you'll be using a .DLL or .EXE file instead of the .SO (shared object) file:
LoadModule php4_module c:/Apache/php/sapi/php4apache.dll Check out this informative page [webmasterstop.com] to figure out what you need to do with a Win installation.
For my own Linux installations, I have chosen to compile PHP support into the Apache daemon binary file, which is a whole 'nother thing. ;)