ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Apache Web-Serving with Mac OS X: Part 3
Subject:   PHP HTML parsing problem
Date:   2003-06-19 16:57:31
From:   enderws
I've got PHP up and running on my local webserver, but I'm having a problem. Whenever I surf to a .php web page served by my box, it prompts me to save the file rather than parsing it for HTML and displaying the webpage. What's wrong? I already added


AddType Application/x-httpd-php .php .html


to my httpd.conf and restarted the webserver. Why would Apache be sending the .php file as a file to be saved rather than HTML? Is it sending the wrong headers? Any help would be appreciated!


1 to 1 of 1
1 to 1 of 1