John Prather wrote:
> The php source option needs to be in your httpd.conf for
> this to work with a line like:
>
> AddType application/x-httpd-php-source .phps
>
> Also, if you are still working on the file, you can symlink it
> so that changes you make to the .php file are displayed on php
> source webpage.
>
> ln -s exampe.php example.phps
>
> This way you won't have two copies of the same file confusing
> you if a slight change is made to one.
>
> (and i think the original post meant to rename the file .phps,
> since one assumes the file already ends in .php)

If I understand the question correctly..
If the source is displayed instead of the page then the default .php is not set correctly in the httpd.conf file for the web server. Peruse the httpd.conf file for the line that reads..: DirectoryIndex index.html, change it to read ..:

DirectoryIndex index.php index.html .

Also make sure that the above mentioned directives are stated as well..

No Problem,
I'm glad that that my post helped, I've wrestled with enough code over the years to know that a helpful answer to a well asked question is worth it's weight in gold, not to mention the time that it will save you.

;)
Craig

p.s. This web site has saved me hours and hours of headaches in the last few years by having a well organized, well structured topic list.