note 115537 added to function.unlink
| From: | Eric | Date: | Mon, 11 Aug 2014 14:17:58 +0000 |
| Subject: | note 115537 added to function.unlink | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200173@lists.php.net to get a copy of this message | ||
This might seem obvious, but I was tearing my hair out with this problem - make sure the file
you're trying to delete isn't currently being used. I had a script that was parsing a text
file and was supposed to delete it after completing, but kept getting a permission denied error
because I hadn't explicitly closed the file, hence it was technically still being
"used" even though the parsing was complete.
----
Server IP: 72.52.91.14
Probable Submitter: 70.91.238.109
----
Manual Page -- http://php.net/manual/en/function.unlink.php
Edit -- https://master.php.net/note/edit/115537
Del: integrated -- https://master.php.net/note/delete/115537/integrated
Del: useless -- https://master.php.net/note/delete/115537/useless
Del: bad code -- https://master.php.net/note/delete/115537/bad+code
Del: spam -- https://master.php.net/note/delete/115537/spam
Del: non-english -- https://master.php.net/note/delete/115537/non-english
Del: in docs -- https://master.php.net/note/delete/115537/in+docs
Del: other reasons-- https://master.php.net/note/delete/115537
Reject -- https://master.php.net/note/reject/115537
Search -- https://master.php.net/manage/user-notes.php