mb_chris
09-26-2003, 07:28 AM
i'm just wondering if php has some kind of sleep or setTimeout function like in perl or javascript.
|
Click to See Complete Forum and Search --> : sleep or setTimeout mb_chris 09-26-2003, 07:28 AM i'm just wondering if php has some kind of sleep or setTimeout function like in perl or javascript. pyro 09-26-2003, 07:33 AM How about sleep() (http://us2.php.net/sleep) ;) mb_chris 09-26-2003, 07:36 AM sounds good to me. i have been looking through documentation and have had trouble finding it. i would imagine that the argument to sleep() is the number of seconds. correct?? pyro 09-26-2003, 07:44 AM Yes, sleep is in seconds. If you need less than a second delay, look at usleep() (http://us2.php.net/manual/en/function.usleep.php). webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |