note 51517 added to function.unlink
| From: | ashley at semantic dot org | Date: | Sat, 02 Apr 2005 10:50:40 +0000 |
| Subject: | note 51517 added to function.unlink | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-87340@lists.php.net to get a copy of this message | ||
Actually you should use "@unlink" rather than testing with file_exists. The former is
atomic, whereas the latter can break if you can't guarantee only one process will try to delete
a given file at a time.
----
Manual Page -- http://www.php.net/manual/en/function.unlink.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51517
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51517&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51517&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51517&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51517&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51517&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51517&report=yes
Search -- http://master.php.net/manage/user-notes.php