PDA

View Full Version : Disable PHP in certain directories


Dalziel
02-16-2004, 12:36 PM
Is it possible to disable PHP in certain directories of a domain and have enabled in other using .htaccess or any other method.

Example:

http://www.mydomain.com - PHP disabled
http://www.mydomain.com/scripts - PHP enabled

daemorhedron
02-17-2004, 02:24 PM
Edit your httpd.conf, or create an htaccess file for the directory you want to turn php parsing off and add this line :

php_flag engine off

HTH.