PHP file permissions
Posted: Tue Oct 21, 2008 5:58 pm
Hey all,
I made a script that creates a file, if it doesn't exist, through fwrite()
The only problem is that when I try writing to this file again later on, it will deny me access. So I have been trying chmod and FTP+chmod to change the permissions on the file to 0666 so I don't run into the access denied error. I can connect and ftp in using the script, but it won't let me chmod the file.
So my problem is that I want to write to a file over and over again in different sessions in different UIDs (kind of like a wiki), but fwrite() keeps returning errors saying that the file is not writable. Is there some fix for this?
I made a script that creates a file, if it doesn't exist, through fwrite()
The only problem is that when I try writing to this file again later on, it will deny me access. So I have been trying chmod and FTP+chmod to change the permissions on the file to 0666 so I don't run into the access denied error. I can connect and ftp in using the script, but it won't let me chmod the file.
So my problem is that I want to write to a file over and over again in different sessions in different UIDs (kind of like a wiki), but fwrite() keeps returning errors saying that the file is not writable. Is there some fix for this?