arfa
12-28-2006, 09:10 AM
A standard file write routine - generating the file $fname on the first run.
$fh = fopen($fname, 'w');
fwrite($fh,$data);
fclose($fh);
On the current server the file, $fname, is written with permission and status:
-rw-r--r-- www-data
So... trying to later write to the file doesn't work.
Being www-data it resists standard fTP chmod command.
It also fails:
chmod("$fname", 0666);
Any suggestions or comments here would be most welcome.
thanks
$fh = fopen($fname, 'w');
fwrite($fh,$data);
fclose($fh);
On the current server the file, $fname, is written with permission and status:
-rw-r--r-- www-data
So... trying to later write to the file doesn't work.
Being www-data it resists standard fTP chmod command.
It also fails:
chmod("$fname", 0666);
Any suggestions or comments here would be most welcome.
thanks