note 28527 deleted from function.unlink by imajes
| From: | imajes@php.net | Date: | Wed, 14 May 2003 01:06:16 +0000 |
| Subject: | note 28527 deleted from function.unlink by imajes | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-47937@lists.php.net to get a copy of this message | ||
You cant unlink() a file that you opened in the same script before with fopen().
If you try to unlink a file opened with fopen() earlier you will get a "permission denied"
php error - thats because the file was locked by fopen(), close the file pointer and then unlink()
the file!
This took me hours because I didnt know fopen() locks the file.
cheers,
m.k.