How to do folder security in php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aniltc
    New Member
    • Jul 2006
    • 17

    How to do folder security in php

    can anyone please help me to find a way to do the folder/directory level permission in php?

    My problem is I have stored my files in a directory.The file is an exe one.I want to restrict others, not to download the exe file directly.Can anyone help me ? :(
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    Store your files in a separate directory and put an empty (redirect) index.php in that folder. If the server is Apache, you can use .htaccess, otherwise your host provider usually has directions on how to protect folders.

    Ronald :cool:

    Comment

    Working...