By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,723 Members | 1,876 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,723 IT Pros & Developers. It's quick & easy.

prevent php execute

P: n/a
Hi all
In apache, How can i prevent php to be execute in a specific
directory?
thanks
from Peter (cm****@hotmail.com)
Sep 7 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
peter wrote:
Hi all
In apache, How can i prevent php to be execute in a specific
directory?
thanks
from Peter (cm****@hotmail.com)
Don't put any PHP coded pages in it.
Sep 7 '08 #2

P: n/a
..oO(peter)
In apache, How can i prevent php to be execute in a specific
directory?
If PHP runs as a module, you can use .htaccess files to turn it off on a
per-directory basis with the 'engine' directive.

http://www.php.net/manual/en/apache....php#ini.engine

Micha
Sep 7 '08 #3

P: n/a
On Sep 7, 4:20*pm, peter <cmk...@hotmail.comwrote:
Hi all
* * In apache, How can i prevent php to be execute in a specific
directory?
thanks
from Peter (cmk...@hotmail.com)
You can use the engine directive in your httpd.conf to disable PHP for
certain directories with <directoryblocks. See the Apache
documentation and the Apache related newsgroups for more information.
Sep 8 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.