Folder security.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
allexxei
Forum Newbie
Posts: 1
Joined: Tue Aug 05, 2003 4:33 am
Location: Buchrest
Contact:

Folder security.

Post by allexxei »

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.)
Post Reply