asmon Posted July 31, 2009 Share Posted July 31, 2009 when uploading a file, i move it into a folder but in order to do that, i have to change folder permission to 'write by others' won't it allow anyone just enter that folder and remove\add any file they want? and what can i do about it? Quote Link to comment https://forums.phpfreaks.com/topic/168254-permissions/ Share on other sites More sharing options...
ignace Posted July 31, 2009 Share Posted July 31, 2009 You need to chmod() the directory to 777, by default a directory created by php has the same access privileges as in which php.exe is executed. I do not recommend modifying it to 777, this will allow anyone to modify the directory. Thus, if you want only one person to be able to modify the directory then you'll have to do this programmatically using group-, role-, or user-based access control. Quote Link to comment https://forums.phpfreaks.com/topic/168254-permissions/#findComment-887470 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.