Jump to content

Recommended Posts

i have some questions on how folders and files permissions work. say i have users directories outside 'protected' as below..

 

users
-- usera
   -- docs
-- userb
   -- docs
protected

 

 

i do not want user B who does not have the rights, to access anything in user A directories. also, i do not want any person to access the directories directory via url links. basically i just want users to be able to access their own directories, and no one else. how can it be done?

 

thanks!

Link to comment
https://forums.phpfreaks.com/topic/251765-folders-and-files-permission/
Share on other sites

Store these directories outside the actual web root and use a permissions-based script to display them and allow them to be browsed.

 

Unless of course these folders are meant to host PHP files, in which case I don't have enough information to answer the question.

hi, these folders are not meant to host php files. i was told to use passthr() readfiles() to serve out the files. but my concern is will this put extra burdens on the server? such that 100 users are downloading different 1mb files (100x100mb) at a time will cause the memory or processing power to cripple??

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.