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 -- h
ttps://master.php.net/note/delete/78333/integrated
Del: useless -- http
s://master.php.net/note/delete/78333/useless
Del: bad code -- htt
ps://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 -- http
s://master.php.net/note/delete/78333/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78333
Reject -- https://mast
er.php.net/note/reject/78333
Search -- https://
master.php.net/manage/user-notes.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|