note 91545 added to function.rmdir

From: Date: Tue, 16 Jun 2009 15:03:17 +0000
Subject: note 91545 added to function.rmdir
Groups: php.notes 
Request: Send a blank email to php-notes+get-156922@lists.php.net to get a copy of this message
if you opened a dir with opendir() you must closedir() before try to execute rmdir() or you will get a "permision denied" error on windows systems. Wrong: <? $handle = opendir($dirpath); //do whatever you need rmdir($dirpath); ?> Right: <? $handle = opendir($dirpath); //do whatever you need closedir($handle) rmdir($dirpath); ?> ---- Server IP: 64.71.164.2 Probable Submitter: 201.231.89.118 ---- Manual Page -- http://www.php.net/manual/en/function.rmdir.php Edit -- https://master.php.net/note/edit/91545 Del: integrated -- https://master.php.net/note/delete/91545/integrated Del: useless -- https://master.php.net/note/delete/91545/useless Del: bad code -- https://master.php.net/note/delete/91545/bad+code Del: spam -- https://master.php.net/note/delete/91545/spam Del: non-english -- https://master.php.net/note/delete/91545/non-english Del: in docs -- https://master.php.net/note/delete/91545/in+docs Del: other reasons-- https://master.php.net/note/delete/91545 Reject -- https://master.php.net/note/reject/91545 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156922) next »