Re: Recurs Directory Delete

From: Date: Fri, 14 Jul 2006 21:09:23 +0000
Subject: Re: Recurs Directory Delete
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-239485@lists.php.net to get a copy of this message
On Fri, July 14, 2006 2:07 pm, tedd wrote: > At 11:55 AM -0700 7/14/06, Mark Steudel wrote: >>I was hoping someone could give me a hand, I'm trying to create a >> delete >>folders function that recursively deletes folders and files from a >> given >>directory. If you want to delete EVERYTHING, an exec("rm -r $path") could potentially be much more efficient. You'd be trading the cost of opening up a mini-shell against PHP iteration, so it would depend on the number of directories, but if there are LOTS of files, the rm -r will probably win. -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#239485) next »