Re: [PHP] deleting directories

2004-09-21 Thread Jasper Howard
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

Re: [PHP] deleting directories

2004-09-21 Thread Afan Pasalic
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 will recursively remove the directory and everything in it He's on a Windows system, that won't work. As a side note, on *nix ba

Re: [PHP] deleting directories

2004-09-21 Thread John Nichel
Afan Pasalic wrote: directories are on Linux server and Windows System Commands will not work there. I forgot to make a note: warning shows c:\ap\artwork\ap.php because I test it locally, n windows machine. but directories are on Linux box sorry for misleading you guys. Then that's a bit easier..

Re: [PHP] deleting directories

2004-09-21 Thread Afan Pasalic
directories are on Linux server and Windows System Commands will not work there. I forgot to make a note: warning shows c:\ap\artwork\ap.php because I test it locally, n windows machine. but directories are on Linux box sorry for misleading you guys. John Nichel wrote: Afan Pasalic wrote: I hav

Re: [PHP] deleting directories

2004-09-21 Thread John Nichel
Jesse Castro wrote: rm -r will recursively remove the directory and everything in it He's on a Windows system, that won't work. As a side note, on *nix based systems, rm -rf would be better suited so that it doesn't prompt for conformation on each file/directory. -- John C. Nichel ÜberGeek K

Re: [PHP] deleting directories

2004-09-21 Thread Afan Pasalic
Thanks Jesse, but I don't have an access to server. Just FTP. That's why I have to use php script. Jesse Castro wrote: rm -r will recursively remove the directory and everything in it -Original Message- From: Afan Pasalic [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 12:31

Re: [PHP] deleting directories

2004-09-21 Thread John Nichel
Afan Pasalic wrote: I have directory with huge number of directories (names by date artwork requested and client id number) with clients artwork. by accident, directory was opened by FrontPage and now in each directory is created _vti_cnf directory with copy of the artwork. i have to delete all t

RE: [PHP] deleting directories

2004-09-21 Thread Jesse Castro
rm -r will recursively remove the directory and everything in it -Original Message- From: Afan Pasalic [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 12:31 PM To: php-general Subject: [PHP] deleting directories I have directory with huge number of directories (names by dat

Re: [PHP] Deleting directories...

2002-04-02 Thread Jason Wong
On Tuesday 02 April 2002 16:42, Philip Jeffs wrote: > Hi, > > I'm trying to delete non-empty directories. I'm using a windows 2000 > server. I have a script that seems to be trying to delete the directories > as it should but it can't delete the directories because it does not have > permission. T