note 89682 rejected from control-structures.foreach by danbrown

From: Date: Thu, 19 Mar 2009 13:09:13 +0000
Subject: note 89682 rejected from control-structures.foreach by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-152135@lists.php.net to get a copy of this message
Note Submitter: tyler at yahoo dot com ---- Hi, this might be the wrong place to ask this but I really can't figure out how to do this. Currently i have a system that fixes my problem of having while statements running for longer than the max execution time on my shared hosting, so what I've done is, in the while statement added total++; and when total reaches a certain ammount then it refreshes file and adds a get variable current, and current is the total that it ended on before it refreshed, so that it starts at current. If that makes sense... But now i have numbers in a txt file separated by a space each, now I've got them out of the text file and stuck the numbers into an array, and I want to use the same concept as above, but I can't figure out how to tell php which number inside the array to start on since the numbers are something like: 1 2 16 22 32 33 34 45 50 so how can I do that?

« previous php.notes (#152135) next »