Page 1 of 1

file handling

Posted: Thu Jun 19, 2003 2:51 am
by theclay7
if i have a file structure as follow:

suppose A is the parent folder and it has sub-folders (-->)...

for example folderA-->folderB-->folderC

now in php, if i want to remove folder A....how can I automatically remove also all the files in folderB and folderC in the file server?

thanks

Posted: Thu Jun 19, 2003 2:59 am
by releasedj
If you look in the user notes at http://uk.php.net/manual/en/function.rmdir.php you will see they have a couple of functions for removing a non-empty directory!