pausing a script

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
grierallen
Forum Newbie
Posts: 1
Joined: Sun Apr 27, 2003 5:17 pm

pausing a script

Post by grierallen »

is there a way to pause a PHP script for n seconds?

thanks,

grier
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post by []InTeR[] »

Try to go to php.net and search :)

sleep -- Delay execution
void sleep ( int seconds)

The sleep() function delays program execution for the given number of seconds.
User avatar
Kriek
Forum Contributor
Posts: 238
Joined: Wed May 29, 2002 3:46 am
Location: Florida
Contact:

Post by Kriek »

Personally I prefer usleep() simply for utilization of microseconds rather than seconds with sleep()
Post Reply