faqts : Computers : Programming : Languages : PHP : Installation and Setup : Web Servers : Apache

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

12 of 13 people (92%) answered Yes
Recently 5 of 5 people (100%) answered Yes

Entry

How I can limit use of PHP to only one directory of a website?

Aug 12th, 1999 01:48
Nathan Wallace, Teodor Cimpoesu


well my guess is:
on server wide config

<IfModule mod_php3.c>
php3_engine off
</IfModule>

<IfModule mod_php4.c>
php_admin_flag engine off
</IfModule>

In your directory(or ries) 

<Directory foo>

<IfModule mod_php3.c>
php3_engine on
</IfModule>

<IfModule mod_php4.c>
php_admin_flag engine on
</IfModule>

</Directory>