RE: [PHP-GENERAL] problems removing a directory

From: Date: Mon, 05 Jun 2000 06:41:22 +0000
Subject: RE: [PHP-GENERAL] problems removing a directory
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1021@lists.php.net to get a copy of this message
Try inserting the full directory path so /home/you/web/images/$dirname Liz > -----Original Message----- > From: Juan Luis Baptiste [mailto:juancho@metallica.com] > Sent: 04 June 2000 23:35 > To: php-general@lists.php.net > Subject: [PHP-GENERAL] problems removing a directory > > > 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? > > --------------------------------- > 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. > --------------------------------- > ______________________________________________________________________ > Check out Metallica's Official Web Site at > http://www.metallica.com > For 200+ channel 24/7 commercial free music visit > http://radio.www.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#1021) next »