Marc Bakker wrote:
Hello all,

I installed PHP, Apache and MySQL. I read the install.txt file that came
with php and changed the default values in php.ini and httpd.conf. When I
restart Apache and type my local website (127.0.0.1/index.php) IE comes with
a 'Save file As' dialog box.

Instead of parsing the php code and returning html code, Apache returns the
index.php file!

Does the AddType line in httpd.conf so that files ending with the extension ".php" are processed by the PHP binary? You should have a section in your httpd.conf that looks something like this:


<IfModule mod_mime.c>
  # a bunch of lines go here
  # a bunch of lines go here
  # a bunch of lines go here
  # a bunch of lines go here
  # a bunch of lines go here
  AddType application/x-httpd-php .php .php3 #<--- you need this line
</IfModule>



Erik



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to