note 90449 deleted from function.readdir by danbrown
| From: | danbrown@php.net | Date: | Thu, 25 Feb 2010 20:33:58 +0000 |
| Subject: | note 90449 deleted from function.readdir by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-166378@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
I was using Kim's code to count the number of files in several different folders, one after
another. I was putting the total of each function call into seperate variables, but the function
kept a RUNNING total from each separate call - until I removed the static $counter declaration
inside the function. Might save someone some hair pulling.