Objectivity
12-04-2007, 06:06 PM
I've just switched to a new server (GoDaddy) and I now have an issue with files that are created through the website. Users will go into a form and that data will be saved into a csv file. The server saves the file as rw-r--r--.
I've tried adding this line (with and without the quotes) in my php script when the file is processed. It doesn't seem to do anything.
chmod("$changeFile", 0666);
The files that are created are giving the group/username of apache. The rest of the files have a different default name.
Basically, I need a way to automatically set the write permissions of the files when they're created so they can later be edited/deleted.
I've searched for scripts to do this, but none seem to be effective. The fault is probably mine more than the scripts, this just isn't an area where I have a lot of background.
I've tried adding this line (with and without the quotes) in my php script when the file is processed. It doesn't seem to do anything.
chmod("$changeFile", 0666);
The files that are created are giving the group/username of apache. The rest of the files have a different default name.
Basically, I need a way to automatically set the write permissions of the files when they're created so they can later be edited/deleted.
I've searched for scripts to do this, but none seem to be effective. The fault is probably mine more than the scripts, this just isn't an area where I have a lot of background.