Search found 3 matches

by jj0914
Wed Oct 01, 2008 1:11 pm
Forum: PHP - Code
Topic: Permission Denied error with fopen()
Replies: 6
Views: 219

Re: Permission Denied error with fopen()

jaoudestudios wrote:change it to 0777
I changed the file name to test instead of test.txt

now I can read, but still can't write/append, I did change the file permission to 0777
by jj0914
Wed Oct 01, 2008 10:57 am
Forum: PHP - Code
Topic: Permission Denied error with fopen()
Replies: 6
Views: 219

Re: Permission Denied error with fopen()

If you are just testing and playing locally set the file to 0777 and it will work but not suitable for production. But for production set to a maximum of 0775 or ideally add ftp user to group with apache and set to 0755 ( I think - its been a while). I changed the file permission to be 0755 on the ...
by jj0914
Wed Oct 01, 2008 8:48 am
Forum: PHP - Code
Topic: Permission Denied error with fopen()
Replies: 6
Views: 219

Permission Denied error with fopen()

I wrote a php script to append content to a local text file. right now I am seeing Permission Denied error every time when I run the script. if I move the text file under /tmp, it's fine. But it doesn't allow me to read/write/append in different folders. the permission and user/usergroup for the fol...