Re: Re: How to understand this Warning?

From: Date: Wed, 18 Aug 2004 04:23:05 +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-194122@lists.php.net to get a copy of this message
* Thus wrote Labunski with modifications: <?php if ($handle = opendir('news')) { while (false !== ($topic = readdir($handle))) { if ($topic != "." && $topic != "..") { while (false !== ($topic = readdir($handle))) { // this will never happen!!!!!!!!! if($topic != "." && $topic != "..") { $topic=str_replace(".","",$topic); array_push($sortArray,$topic); } } // We are at the end of all the files // snip all the other stuff. // you're closing the file here so // the next iteration of the loop it is no // longer valid closedir($handle); } } ?> Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!

« previous php.general (#194122) next »