Glaanieboy
OSNN Veteran Addict
- Joined
- 6 Mar 2002
- Messages
- 2,628
I want to make my php scripts available to the public, I know that you can copy the file to an extension of phps to see a color-formatted source. But I don't know how to do it on my own installation of Apache2 and php (on Windows XP). What I have done is added these two lines to httpd.conf:
But when I click on a phps file, I get a file not found error. If I remove these two lines, restart Apache2 and click them again, I get the source, but no colors.
What should I do to enable colorformatted phps viewing?
Code:
AddType application/x-httpd-php-source .phps
Action application/x-httpd-php-source "/php/php.exe -s"
What should I do to enable colorformatted phps viewing?