I am having a hard time making my scripts accessible to my clientele. One problem is that they do not have experience with chmod settings. I, myself, have not used chmod with PHP with success. Instead of having my clients use WS_FTP (or some other program) I'd like my php to automatically chmod certain files.
IE
1. Try to read a file.
2. If you can't read from file...
see if the file exists.
3. If the file exists...
change the chmod to 0666.
4. If the file doesn't exist...
create file file.tw and chmod to 0666.
Could someone simply me with some source code that would accomplish this feat?
Tony Whispers
tonywhispers@hotmail.com
IE
1. Try to read a file.
2. If you can't read from file...
see if the file exists.
3. If the file exists...
change the chmod to 0666.
4. If the file doesn't exist...
create file file.tw and chmod to 0666.
Could someone simply me with some source code that would accomplish this feat?
Tony Whispers
tonywhispers@hotmail.com