Maybe he wants to break the loop if he encounters a certain condition, and not necessarily go to the end of his data.
try
$loop = true;
while($loop){
$data = fgetcsv($handle, 1000, ",");
if($arraysize......................
//and to break the loop
if(condition){
$loop = false;
}
}
Be careful with this thoough. Make sure your condition always happens before the end of your data.
On Thu, Sep 24, 2009 at 9:14 AM, thea maina wrote:maybe this ?
> Iterate this for infinity. - Hi guys, i hit a mind lock.. How can i iterate
> this for infinity.
> thanks
> ----------------------------------------------------------------
>
> while (($data = fgetcsv($handle, 1000, ",")) !== FALSE)
> {
while (TRUE) {
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {but are you dealing with infinite data ?
}
}
_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
Other services @ http://my.co.ke
Other lists
-------------
Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce
Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science
kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general