CrackaLackaZe
Senior member
Anyone know how to get apache to leave php.txt files alone and just have them be plain viewable instead of executed?
I'd suggest adding the 2nd line to your httpd.conf (uncommented of course) if it's not already there. If you don't want to do that you can always just rename the file to xxx.php_txt or something else that won't qualify as php.AddType application/x-httpd-php .php
# AddType application/x-httpd-php-source .phps
Originally posted by: kamper
From my php.conf file (included into httpd.conf):
I'd suggest adding the 2nd line to your httpd.conf (uncommented of course) if it's not already there. If you don't want to do that you can always just rename the file to xxx.php_txt or something else that won't qualify as php.AddType application/x-httpd-php .php
# AddType application/x-httpd-php-source .phps
Heh, I just tried the phps option and it did a nice syntax highlighting!