Page 1 of 1

Function forcing code to "pause"?

Posted: Fri Mar 12, 2004 7:37 pm
by Fribbles
I am looking for some php that will allow me to set a pause for a variable amount of time before execution.

For example: I put a string of numbers into a text file, then I want to put the same string of numbers in the very same text file 60 seconds later.

How can this be done in a php script that is executed via web?

Thanks in advance,

MB

Posted: Fri Mar 12, 2004 7:41 pm
by Illusionist
maybe the [php_man]sleep()[/php_man] function??

Posted: Fri Mar 12, 2004 7:41 pm
by angrytuna
Take a look at this: http://www.php.net/sleep

Posted: Sat Mar 13, 2004 10:44 am
by d3ad1ysp0rk
If you want it every 60 seconds, run a cron script on the file that inserts them..