note 53310 deleted from function.rmdir by aidan

From: Date: Wed, 15 Apr 2009 04:29:02 +0000
Subject: note 53310 deleted from function.rmdir by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153276@lists.php.net to get a copy of this message
Note Submitter: php at aithal dot org ---- In the previous examples of recursive rmdir, people should take care to use the proper way of calling readdir: <? while (false !== ($file = readdir($dir))) { // do some stuff with $file } ?> If you don't use this syntax, the loop will halt if it ever comes across a file named '0'. http://www.php.net/readdir - provides more info on why this is the case. hth vittal

« previous php.notes (#153276) next »