note 18308 deleted from function.rmdir by aidan

From: Date: Sun, 05 Sep 2004 07:15:28 +0000
Subject: note 18308 deleted from function.rmdir by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76033@lists.php.net to get a copy of this message
Note Submitter: office at at universalmetropolis dot com ---- 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).

« previous php.notes (#76033) next »