View Full Version : How to disable PHP engine for a folder?

09-04-2006, 11:34 AM
How can I disable PHP for a certain folder and his subfolders?
I think this can be done through a htaccess File directive like this:
<Files ~ ".*\.php$">
Order deny,allow
Deny from all

but if a user upload another htaccess who override my stettings?

Is there a way to disallow certain path to execute PHP scripts?

CHMOD don't work or I am unable to figure out how setup it because if I deny execution on the folder my users will not be able to load anything.


09-04-2006, 11:48 AM
Why would somebody be able to upload another htaccess file?

09-04-2006, 11:54 AM
Uhmm, ok, I have created a FTP account who points to public_html/users/john ... now.. I want that John (that is restricted to john folder and sons) is able to upload things but not PHP and execute that script, how can I do?

09-04-2006, 01:17 PM
You could try a php alternative to ftp, try looking on hotscripts.com (http://hotscripts.com).