Hello,
I've a small problem, which mades me crazy... :\
I'm trying to rename() a swapfile to real destination file (atomic update).
It works on differnt environments very well. Sadly not on my ISP-server
I've added an "chmod($swapfile,0777)", but this has not solve the problem.
The directories have all FULL access (read, write, etc.). The destiniation file
too. I don't want 2 use the copy/unlink solution.... Do anyone have an idea?
--- 8< ---
if ( $file = fopen($swapfile,"w") )
{
fwrite($file,$out);
fclose($file);
chmod($swapfile, 0777);
/* this fails with "Permission denied" */
rename($swapfile,$filename);
/* ... but this works */
copy($swapfile,$filename);
unlink($swapfile);
}
--- 8< ----
Thanks 4 help...
--
christian rosentreter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php