FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Hourly script
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Hourly script [message #173303 is a reply to message #173298] Sat, 02 April 2011 17:58 Go to previous messageGo to previous message
Eli the Bearded is currently offline  Eli the Bearded
Messages: 22
Registered: April 2011
Karma:
Junior Member
In comp.lang.php, Question Boy <question(dot)boy(at)hotmail(dot)com> wrote:
> I built a mailing tool for a custom database for a charity
> organisation and it does work, but our host has a limit of 200 e-mails
> an hour. As it stands, someone has to manually send out 200 e-mails
> every hour until the whole lot is processed (2800 recipients and
> growing). I was simply wondering if there is a way to modify/add a
> bit of code to process the entire recordset in batches of 200 records
> per hour?

200 / hour = 1 / 18 seconds.

foreach($address_list as $recip) {
sendone($recip);
sleep(18);
}


Elijah
------
you might need to change a lot timeouts or not run from a web page
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: Firefox PHP error report
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 18:05:25 GMT 2024

Total time taken to generate the page: 0.03803 seconds