Re: [PHP] Deleteing folders containing files...
At 09:36 AM 3/15/2002 +, Philip Jeffs wrote: >Hi, > >Does anyone know of an 'easy' way to delete folders that contain files and >sub-folders? Here's what I use (use rmdirRf($folderthatcontainsotherstuff)): read())) { if ($filename != "." && $filename != "..") { rmdirRf($file."/".$filename); } } $directory->close(); rmdir($file); } else { unlink($file); } } } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Deleteing folders containing files...
Linux /Unix - $some=`rm -rf your_dir`; Regards, Andrey - Original Message - From: "Philip Jeffs" <[EMAIL PROTECTED]> To: "PHP LIST" <[EMAIL PROTECTED]> Sent: Friday, March 15, 2002 11:36 AM Subject: [PHP] Deleteing folders containing files... Hi, Does anyone know of an 'easy' way to delete folders that contain files and sub-folders? Thanks, Phil - Philip Jeffs The Tickle Group The Gate House Summerseat Bury Lancashire BL9 5PE United Kingdom W: http://www.tickle.co.uk T: 01706 823456 F: 01706 829500 E: [EMAIL PROTECTED] (daytime) [EMAIL PROTECTED] (evening) - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Deleteing folders containing files...
Hi, Does anyone know of an 'easy' way to delete folders that contain files and sub-folders? Thanks, Phil - Philip Jeffs The Tickle Group The Gate House Summerseat Bury Lancashire BL9 5PE United Kingdom W: http://www.tickle.co.uk T: 01706 823456 F: 01706 829500 E: [EMAIL PROTECTED] (daytime) [EMAIL PROTECTED] (evening) -