Now that I think of it, he doesn't need to use a while loop.
He can just go through the sites, tell the bot to sleep for like 30 secs, then go through the sites again, and so on. This would be done with
PHP: sleep - Manual and
PHP: Manual Quick Reference.
Update: What? I thought PHP had goto?