Forum Moderators: coopster
The reason I ask is because I am getting ambiguous behaviour from this. Sometimes it works if just the directory is 777 EVEN if the file exists, sometimes it doesn't work if the preexisting file is not 777.
I am running my script scheduled through a cron job, the only other variable I can imagine is that the permission of that is different and causing problems...any thoughts?
To create a new file the directory must be writable. Not sure if php requires it to be readable and executable, but 777 probably wont do any harm (provided there is nothing sensitive in there and its outside docroot).