Re: A Way to avoid enforced time-outs

From: Date: Mon, 15 Oct 2001 14:30:34 +0000
Subject: Re: A Way to avoid enforced time-outs
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71098@lists.php.net to get a copy of this message
why didn't you use set_time_limit() ? <peterdove7846@ukonline.co.uk> wrote in message news:20011015124236.82558.qmail@pb1.pair.com... > Hi, > > I was having trouble with my mailing list script timing out after 30secs ( > enforced and unchangeable by my ISP ). It would start timing out after about > 1000 mailings or so. > > What I did was create a page which was passed two variables in the URL. One > was a start row and the other was a row count. These both referred to the > emails in the email table. > > Then basically the php script chewed away 50 emails at a time, pasted a > refresh Meta tag into the final html document using a refresh of page about > 4 secs. It display on the page 'Please do not close your browser emailing > clients x of rowcount'. It would then call the script again with the > incremented start row and start all over again. > > When all rows where complete the script would end and display that it had > completed all emails. > > Cheers > > Peter > http://www.mailmeld.com > >

« previous php.general (#71098) next »