note 88446 added to function.sleep

From: Date: Sat, 24 Jan 2009 20:59:31 +0000
Subject: note 88446 added to function.sleep
Groups: php.notes 
Request: Send a blank email to php-notes+get-149734@lists.php.net to get a copy of this message
Handy to use when you are sending a large number of emails and wish to throttle the connection as not to crash your mail server, simply after your send you could use sleep(2); To sleep for 2 seconds before continuing your loop to send your next email. Need to watch your maximum execution time though, might be worth upping that limit. ---- Server IP: 92.48.74.199 Probable Submitter: 92.239.180.31 ---- Manual Page -- http://www.php.net/manual/en/function.sleep.php Edit -- https://master.php.net/note/edit/88446 Del: integrated -- https://master.php.net/note/delete/88446/integrated Del: useless -- https://master.php.net/note/delete/88446/useless Del: bad code -- https://master.php.net/note/delete/88446/bad+code Del: spam -- https://master.php.net/note/delete/88446/spam Del: non-english -- https://master.php.net/note/delete/88446/non-english Del: in docs -- https://master.php.net/note/delete/88446/in+docs Del: other reasons-- https://master.php.net/note/delete/88446 Reject -- https://master.php.net/note/reject/88446 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#149734) next »