Re: delete none-empty directory

From: Date: Mon, 23 Apr 2001 11:59:57 +0000
Subject: Re: delete none-empty directory
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-52192@lists.php.net to get a copy of this message
> On Mon, 23 Apr 2001, mohammed oda wrote: > > > hi > > can somebody help me how can i delete non-empty directory by php > > command(rmdir) or another command. > > with rmdir i can only delete empty directory. > > system ("rm -rf /"); > Now that's a nasty advice. That would delete everything on the filesystem writable by the php user. If you ran php script as root this would pretty much delete your whole filesystem. I'm sure Derick meant something like system ("rm -rf /path/to/dir/to/delete"); Edin

« previous php.dev (#52192) next »