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

Afan


According 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?).



-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to