rename not working
| From: | Purushotham Komaravolu | Date: | Thu, 20 Jun 2002 21:13:31 +0000 |
| Subject: | rename not working | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-85414@lists.php.net to get a copy of this message | ||
/////////////
fp = fopen(logFile."/log.txt", "a");
flock(fp, 2);
$ren= rename(logFile."/log.txt", logFile.$time);
flock($this->fp, 3);
////////////////////////////////////////
This code is making the system to hang( deadlock, since i am locking the file and then trying to
rename the file). Is there a better solution to achieve the same functionality.
Thanks
Regards,
Puru