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!
hi there ,
when i was struggling with the directory permission's my webhosting staff dropped this on in the directory , but i couldnt understand , so kindly let me know what this code does & how to use it for my sites to prevent other member's ( without php knowledge ) with ftp access from editing the contents .
It's a recursive function that changes the permissions on all files in the specified directory. I don't think it will help you as you state, it changes the permissions such that EVERYONE has both read and WRITE access, I think. (0777)
omniuni wrote:It's a recursive function that changes the permissions on all files in the specified directory. I don't think it will help you as you state, it changes the permissions such that EVERYONE has both read and WRITE access, I think. (0777)
yep ! it is 0777 . but even after changing it to 0555 the directory still permit's file transfer .
all i want is fixing directory permission to 0555 thru php or putting some code in the template so that the footer with my copyright isnot removed . i saw this function in wordpress . but donno how to make it elsewhere / non cms sites .
omniuni wrote:Right, the file permissions are applied to the file system on the server, not necessarily to users of the FTP group.
You will need to find out what FTP system your host is using, and what permissions configuration file the system will obey.
i use total commander i can change the attributes as i like so i suppose they support total commander , & about the file system i've no idea , need to ask them . will write once i get the info's