its pretty easy to make your function recursive, all you need to do is test if the current file is a directory (if (is_dir($file)){run function} else if (eregi('/_vti_cnf/',$file))), then delete all files as long as they are located in a "_vti_cnf" directory. And I'm sure I've done something wrong that won't please someone on the list, but hopefully this baic idea works and someone will be able to improve on it.
On Tue, 21 Sep 2004 12:50:09 -0500, Afan Pasalic <[EMAIL PROTECTED]> wrote: > Sorry John, but I forgot to write that detail: I test locally on Win > machine, but directories are on Linux server. > > Afan > > > > > John Nichel wrote: > > > Jesse Castro wrote: > > > >> rm -r <directoryname> will recursively remove the directory and > >> everything in it > > > > <snip> > > > > He's on a Windows system, that won't work. As a side note, on *nix > > based systems, rm -rf <dir> would be better suited so that it doesn't > > prompt for conformation on each file/directory. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- <<-------------------------------------------------------- Jasper Howard - Database Administration ApexEleven.com 530 559 0107 ------------------------------------------------------->> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php