note 90449 added to function.readdir
| From: | Anonymous at osu1 dot php dot net | Date: | Thu, 23 Apr 2009 05:07:37 +0000 |
| Subject: | note 90449 added to function.readdir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-153601@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 64.71.164.2
Probable Submitter: 64.53.128.98
----
Manual Page -- http://www.php.net/manual/en/function.readdir.php
Edit -- https://master.php.net/note/edit/90449
Del: integrated -- https://master.php.net/note/delete/90449/integrated
Del: useless -- https://master.php.net/note/delete/90449/useless
Del: bad code -- https://master.php.net/note/delete/90449/bad+code
Del: spam -- https://master.php.net/note/delete/90449/spam
Del: non-english -- https://master.php.net/note/delete/90449/non-english
Del: in docs -- https://master.php.net/note/delete/90449/in+docs
Del: other reasons-- https://master.php.net/note/delete/90449
Reject -- https://master.php.net/note/reject/90449
Search -- https://master.php.net/manage/user-notes.php