Re: Re: How to understand this Warning?
| From: | Jason Wong | Date: | Wed, 18 Aug 2004 04:55:31 +0000 |
| Subject: | Re: Re: How to understand this Warning? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194124@lists.php.net to get a copy of this message | ||
On Wednesday 18 August 2004 10:26, Labunski wrote:
> Hi,
>
> > note the "2" in that message. You are prob. resetting the readdir()
>
> parameter in the script somewhere
> No, as far as I can see, I'm not resetting the readdir().. but..
>
> > You loop twice throu the same dir?
>
> Yes I do.
Why? I don't understand your logic. Remove the outer while-loop, note that it
encloses most of the code including the line:
closedir($handle);
So on the second iteration of the outer while-loop $handle is gone and hence
your error message.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Pure drivel tends to drive ordinary drivel off the TV screen.
*/