Hi,
I have written a PHP that saves its data into files contained in a subfolder of the directory of the script. I cant figure out what CHMOD permissions I need to give to the scripts to make this work how I want.
Basically the script needs to be able to read and write to the files in the folder, occasionally it will also create new files and it will occasionally delete files that are no longer required.
What file permissions do I need to set on the folder so that an internet user can not just type in the URL of this folder and read the files? Also if they know the full path and filename of the files they should not be able to read them either.
Will I need to get my PHP script to set file permissions on the new files that it creates? if so, how?
I would very much appreciate any help on this matter. (call me a unix n00b if you must)
Regards,
Tim




Reply With Quote