Function forcing code to "pause"?

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!

Moderator: General Moderators

Post Reply
Fribbles
Forum Newbie
Posts: 1
Joined: Fri Mar 12, 2004 7:37 pm

Function forcing code to "pause"?

Post 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
Illusionist
Forum Regular
Posts: 903
Joined: Mon Jan 12, 2004 9:32 pm

Post by Illusionist »

maybe the [php_man]sleep()[/php_man] function??
User avatar
angrytuna
Forum Newbie
Posts: 12
Joined: Mon Feb 23, 2004 1:01 am

Post by angrytuna »

Take a look at this: http://www.php.net/sleep
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

If you want it every 60 seconds, run a cron script on the file that inserts them..
Post Reply