I am setting up a cron using php.
I have a file which I want to update by doing file_put_contents() on it via cron and via web browser (manual).
everything via web brower works fine, but cron gives a "permission denied".
I am overwriting the file each time it gets updated.
How can I resolve the permission issue?
Thanks in advance.