note 97023 rejected from function.sleep by danbrown

From: Date: Mon, 29 Mar 2010 14:12:11 +0000
Subject: note 97023 rejected from function.sleep by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-167487@lists.php.net to get a copy of this message
Note Submitter: audioturntables at yahoo dot com ---- I was just wondering if anyone would be willing to clear up a question I've been having. I know very little about php, and I have a file that I'm setting up to run with a cron job. Would inputting the following code be the right way to delay the function for 3-7 minutes? <? $sleep_mode = rand(180,420); if($sleep_mode == 0){ sleep(rand(180, 420)); } ?>

« previous php.notes (#167487) next »