Women in Technology

Hear us Roar



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!

Full Threads Newest First

Showing messages 1 through 1 of 1.

  • PHP HTML parsing problem
    2003-08-16 16:36:04  anonymous2 [View]

    I had the same problem. My problem was that it wasn't saving the file with the php extension. It added rtf to the end. Read this article
    http://www.macromedia.com/devnet/mx/dreamweaver/articles/php_macintosh.html

    And follow the directions for the TextEdit and after doing the changes make sure you open a new file.