Jump to content

folders and files permission


ibolui

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??

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.