note 78333 added to function.rmdir
| From: | bhuvidyaatyahoodotcomdotau at osu1 dot php dot net | Date: | Sun, 07 Oct 2007 12:50:40 +0000 |
| Subject: | note 78333 added to function.rmdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131196@lists.php.net to get a copy of this message | ||
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;
}
----
Server IP: 203.16.234.19
Probable Submitter: 202.63.48.22 (proxied: 202.63.48.22)
----
Manual Page -- http://www.php.net/manual/en/function.rmdir.php
Edit -- https://master.php.net/note/edit/78333
Del: integrated -- https://master.php.net/note/delete/78333/integrated
Del: useless -- https://master.php.net/note/delete/78333/useless
Del: bad code -- https://master.php.net/note/delete/78333/bad+code
Del: spam -- https://master.php.net/note/delete/78333/spam
Del: non-english -- https://master.php.net/note/delete/78333/non-english
Del: in docs -- https://master.php.net/note/delete/78333/in+docs
Del: other reasons-- https://master.php.net/note/delete/78333
Reject -- https://master.php.net/note/reject/78333
Search -- https://master.php.net/manage/user-notes.php