problems trying to remove a directory
[email protected] ("Juan Luis Baptiste M.") Sat, 03 Jun 2000 17:53:24 -0500
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <[email protected]> |
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.
---------------------------------