note 97618 added to function.rmdir
| From: | info at top-info dot org | Date: | Wed, 28 Apr 2010 11:15:56 +0000 |
| Subject: | note 97618 added to function.rmdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-168753@lists.php.net to get a copy of this message | ||
The function delTree is dangerous when you dont take really care. I for example always deleted a
temporary directory with it. Everthing went fine until the moment where the var containing this
temporary directory wasnt set. The var didnt contain the path but an empty string. The function
delTree was called and deleted all the files at my host!
So dont use this function when you dont have a proper handling coded. Dont think about using this
function only for testing without such a handling.
Luckily nothing is lost because I had the local copy...
----
Server IP: 217.160.235.204
Probable Submitter: 77.21.203.38
----
Manual Page -- http://www.php.net/manual/en/function.rmdir.php
Edit -- https://master.php.net/note/edit/97618
Del: integrated -- https://master.php.net/note/delete/97618/integrated
Del: useless -- https://master.php.net/note/delete/97618/useless
Del: bad code -- https://master.php.net/note/delete/97618/bad+code
Del: spam -- https://master.php.net/note/delete/97618/spam
Del: non-english -- https://master.php.net/note/delete/97618/non-english
Del: in docs -- https://master.php.net/note/delete/97618/in+docs
Del: other reasons-- https://master.php.net/note/delete/97618
Reject -- https://master.php.net/note/reject/97618
Search -- https://master.php.net/manage/user-notes.php