note 78333 deleted from function.rmdir by aidan

From: Date: Wed, 15 Apr 2009 04:23:09 +0000
Subject: note 78333 deleted from function.rmdir by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153249@lists.php.net to get a copy of this message
Note Submitter: bhuvidya at yahoo dot com dot au ---- dear bluej100: i think there's a bug in the line: if ($child[0] == '.') {continue;} it is possible to have a directory that starts with '.', eg '.tmpfiles' - i think the above line is just trying to catch '.' and '..', so you will have to do the following: if ($child == '.' || $child == '..') { continue; }

« previous php.notes (#153249) next »