|
PHP advice on loops
I need to create a loop that do something.
If that something fails to happen, I need the loop to go back and do it again until it happens...
The basic:
top:
Get a URL that may timeout;
(if URL isn't grabbed) -> goto top;
My current understanding of loops in PHP can't figure out this kind of loop. Where it will keep going back into infinity when the if match isn't being met.
Anyone?
|