> 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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]