[thelist] how to delete everything in a dir using php

Andrew Moore amoore at mooresystems.com
Thu Sep 26 01:02:01 CDT 2002


On Wed, Sep 25, 2002 at 04:13:20PM -0700, Howard Cheng wrote:
> Can't you just chdir to the directory you want and then do unlink("*.*")?
>
> At 10:31 PM 9/25/2002 +0000, Dunstan Orchard wrote:
> >I realise you probably use unlink() but I'm unable to find a way to select
> >everything in a dir and apply that command to it.
>

well, does the unlink command glob filenames like that?
Also, he may want to delete all files, not just those with dots in their names.

-Andy




More information about the thelist mailing list