file handling

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
theclay7
Forum Commoner
Posts: 50
Joined: Wed Feb 19, 2003 3:17 am

file handling

Post 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
User avatar
releasedj
Forum Contributor
Posts: 105
Joined: Tue Jun 17, 2003 6:35 am

Post 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!
Post Reply