note 90453 deleted from function.scandir by danbrown
| From: | danbrown@php.net | Date: | Thu, 23 Apr 2009 13:09:54 +0000 |
| Subject: | note 90453 deleted from function.scandir by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-153619@lists.php.net to get a copy of this message | ||
Note Submitter: Ruwan Epage: ruvan at msn dot com
----
how I remove all files in all subdirs one level:
$topDir = "xmlcache/browse/";
foreach(scandir($topDir) as $subDir)
foreach(glob("$topDir$subDir/*.*") as $file) unlink($file);