ibolui Posted November 25, 2011 Share Posted November 25, 2011 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! Quote Link to comment https://forums.phpfreaks.com/topic/251765-folders-and-files-permission/ Share on other sites More sharing options...
ManiacDan Posted November 25, 2011 Share Posted November 25, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/251765-folders-and-files-permission/#findComment-1291050 Share on other sites More sharing options...
ibolui Posted November 25, 2011 Author Share Posted November 25, 2011 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?? Quote Link to comment https://forums.phpfreaks.com/topic/251765-folders-and-files-permission/#findComment-1291054 Share on other sites More sharing options...
ManiacDan Posted November 25, 2011 Share Posted November 25, 2011 That should be fine for your needs, especially using passthrough Quote Link to comment https://forums.phpfreaks.com/topic/251765-folders-and-files-permission/#findComment-1291127 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.