note 18308 added to function.rmdir
| From: | office at at universalmetropolis dot com | Date: | Thu, 17 Jan 2002 23:02:15 +0000 |
| Subject: | note 18308 added to function.rmdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-25005@lists.php.net to get a copy of this message | ||
Make sure you test this function on a directory you don't mind sacrificing. I was trying to
figure out some ultra-complex (*stuff*) because it kept telling me that my directory was full, and
then it would proceed to delete the directory below it... my problem all along, RMDIR() works fine
by itself.
The reason is because I am a fool and had an incorrect variable for the folder name, and it
interpreted my realpath() string as NULL - meaning, it tried to delete the directory in which it was
located itself. The functions on this page deleted the whole shebang.
Other than that, its very quick and simple. (You may need to refresh the location in your FTP
program to see the changes).
--
http://www.php.net/manual/en/function.rmdir.php
http://master.php.net/manage/user-notes.php?action=edit+18308
http://master.php.net/manage/user-notes.php?action=delete+18308
http://master.php.net/manage/user-notes.php?action=reject+18308