note 101973 added to function.unlink

From: Date: Thu, 20 Jan 2011 21:51:06 +0000
Subject: note 101973 added to function.unlink
Groups: php.notes 
Request: Send a blank email to php-notes+get-175952@lists.php.net to get a copy of this message
In complement to kgy in regards to the deletion of file on windows (same mindset as lpatrick with the odbc solution) Make sure to close the opened file before unlinking it! <?php $f = fopen($file,'r'); fclose($f); // close the opened file or might not be unlinked ok, especially on windblowz unlink($file); ?> Hope that helps... Vinz ---- Server IP: 195.221.21.36 Probable Submitter: 83.113.223.200 ---- Manual Page -- http://www.php.net/manual/en/function.unlink.php Edit -- https://master.php.net/note/edit/101973 Del: integrated -- https://master.php.net/note/delete/101973/integrated Del: useless -- https://master.php.net/note/delete/101973/useless Del: bad code -- https://master.php.net/note/delete/101973/bad+code Del: spam -- https://master.php.net/note/delete/101973/spam Del: non-english -- https://master.php.net/note/delete/101973/non-english Del: in docs -- https://master.php.net/note/delete/101973/in+docs Del: other reasons-- https://master.php.net/note/delete/101973 Reject -- https://master.php.net/note/reject/101973 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#175952) next »