[PHP] deleting directories

2004-09-21 Thread Afan Pasalic
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 those '_vti_cnf'

RE: [PHP] deleting directories

2004-09-21 Thread Jesse Castro
rm -r directoryname 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

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

Re: [PHP] deleting directories

2004-09-21 Thread Afan Pasalic
21, 2004 12:31 PM To: php-general Subject: [PHP] deleting directories 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

Re: [PHP] deleting directories

2004-09-21 Thread John Nichel
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. -- John

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

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

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 directoryname will recursively remove the directory and everything in it snip He's on a Windows system, that won't work. As a side

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

[PHP] Deleting directories...

2002-04-02 Thread Philip Jeffs
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. The script runs CHMOD on the direcory to make sure it has

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. The