faqts : Computers : Programming : Languages : PHP : Installation and Setup : Security

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

30 of 37 people (81%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

How can I turn off PHP execution on a per directory basis?
What are the PHP3 and PHP4 directives to stop PHP execution in a directory?

May 13th, 2000 18:54
Nathan Wallace, Fredrik Hellström


In Apache you can use .htaccess files in the directories you want to
affect.  There are PHP directives that can be placed in that file.

In PHP4 you should use

    php_flag engine off

instead of

    php3_engine off