Re: deleting directories
| From: | John Nichel | Date: | Tue, 21 Sep 2004 17:39:41 +0000 |
| Subject: | Re: deleting directories | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-197444@lists.php.net to get a copy of this message | ||
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 those '_vti_cnf' directories. Since I don't have root access to server (shared hosting) I made a php script: <script snip>
But, it doesn't work. I’m getting this Warnings: Warning: rmdir(20040301-040434-1411/_vti_cnf): Directory not empty in c:\ap\artwork\ap.php on line 19 Is there any other function that allows me to delete even not-empty directories? Or somebody has better idea? Thanks. AfanAccording to the documentation (http://us4.php.net/rmdir), the directory must be empty. You can use the Windows system command to delete a non-empty directory with either exec() or by using backticks. Sorry, but I don't remember what the Windows command is (del?). -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com