Results 1 to 4 of 4

Thread: How to disable PHP engine for a folder?

  1. #1
    Join Date
    Aug 2006
    Posts
    14

    Question How to disable PHP engine for a folder?

    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
    </Files>

    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.

    THX

  2. #2
    Join Date
    Feb 2006
    Location
    Florida, USA
    Posts
    1,505

    Default

    Why would somebody be able to upload another htaccess file?

  3. #3
    Join Date
    Aug 2006
    Posts
    14

    Default

    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?

  4. #4
    Join Date
    Feb 2006
    Location
    Florida, USA
    Posts
    1,505

    Default

    You could try a php alternative to ftp, try looking on hotscripts.com.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •