Why do you need a script to run every 10 seconds? There has to be a more efficient way to do whatever it is you are trying to do.
stymiee
He's No Good To Me Dead
3,360 posts since May 2006
Reputation Points: 161
Solved Threads: 38
Or you can simply ad
[PHP]header('refresh:10; url=same_page.php');[/PHP]
johny_d
Junior Poster in Training
94 posts since May 2007
Reputation Points: 33
Solved Threads: 7
Ir runs only when viewed by a user and will run in continuous loop until the user closes the browser.
Of course, you can setup a $_GET variable to count the loops and stop at some point
Thanks, good idea, can I use a timevalue, like refresh 12:00:xx
As far as I know, in header(refresh...) you can only specify the number of seconds the script has to wait untill refresh, not a certain hour.
johny_d
Junior Poster in Training
94 posts since May 2007
Reputation Points: 33
Solved Threads: 7
johny_d
Junior Poster in Training
94 posts since May 2007
Reputation Points: 33
Solved Threads: 7