PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Is your intention to execute a loop every X seconds? If so you may want to try the sleep() function instead. The script below should execute just as yours did:
Yes, that works on both my local machine and my shared host. Interesting.
My original code didn't generate any errors in the logs, so I guess it must be something with the host's Apache configuration rather than the PHP configuration?