Folder security.
Posted: Wed Jul 06, 2005 8:08 am
Hello,
I don't have to much experience with PHP and I have oane major problem. I shall apreciate any help. 10q.
My problem sound like this:
I have access to hosting server trough CPanel X.
I developed a simple CMS for a site and I need to implement a upload form for images and some other documents. I would like to upload and write the files directly into a folder on HDD ( not in mysql). How can I protect that folder. I would like to set differrent permissions for some users and/or groups. So if load "/admin/index.php", I login with a user and I have writing permision in "docs" folder, else (I do not login) I have only read permissions. The login process should work trough PHP, because I do not have acces to other resources (I think. I am not sure how this CPanel X works.)
I don't have to much experience with PHP and I have oane major problem. I shall apreciate any help. 10q.
My problem sound like this:
I have access to hosting server trough CPanel X.
I developed a simple CMS for a site and I need to implement a upload form for images and some other documents. I would like to upload and write the files directly into a folder on HDD ( not in mysql). How can I protect that folder. I would like to set differrent permissions for some users and/or groups. So if load "/admin/index.php", I login with a user and I have writing permision in "docs" folder, else (I do not login) I have only read permissions. The login process should work trough PHP, because I do not have acces to other resources (I think. I am not sure how this CPanel X works.)