A Way to avoid enforced time-outs

From: Date: Mon, 15 Oct 2001 12:44:56 +0000
Subject: A Way to avoid enforced time-outs
Groups: php.general 
Request: Send a blank email to php-general+get-71094@lists.php.net to get a copy of this message
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 (#71094) next »