problems trying to remove a directory

From: Date: Sat, 03 Jun 2000 22:53:24 +0000
Subject: problems trying to remove a directory
Groups: php.version4 
Request: Send a blank email to php-version4+get-16116@lists.php.net to get a copy of this message
Hi, I'm having little trouble removing a non empty directory. rmdir only deletes empty directories, so I tried doing this: exec("rm -fr images/$dirname"); But it does nothing, and if I try rmdir("images/$dirname"); it says directory not empty, and if I try unlink("images/$dirname/*.jpg"); it says no such file or directory, but the directory exists and has some files on it. what can I do? thanks, -- --------------------------------- Juan Luis Baptiste M. Pontificia Universidad Javeriana Ingenieria de Sistemas Linux Registered User #119248 http://www.merlinux.org "We're back to the times when men where men and wrote their own drivers" Linus Torvalds. ---------------------------------

« previous php.version4 (#16116) next »