How to get intermediate script results to browser?

From: cool (coo_at_goontrytospamme.dk)
Date: 11/29/04


Date: Mon, 29 Nov 2004 10:58:42 +0100

Hi,

The task that I am working with is sending out a newsletter via email to
all subscribers, which are contained in a mysql database. I have a php
script that does this in this fashion: The list of emails which are to
receive the newsletter is retrieved from the database and put into an
array. Then, the script loops through the array and 1) sends out the
newsletter and then 2) updates a "last-newsletter-date-sent" field to
now(). This last step is to make sure we know who did or did not receive
the newsletter in case the script aborts for some reason before
completion.

This works fine. However, for some reason it takes a really really long
time to send out all these mails using our current web hotel. And it makes
us nervous when our browser is waiting and waiting, and then finally times
out.

What I would like to do is get the PHP script to somehow send an
intermediate status to the browser, like every once in a while send the
array index number of the email which has just been sent out. This could
be, for example, every minute or two.

Can this be done? How?

Thanks for any help!

Regards,
Steve, Denmark



Relevant Pages

  • need help with sending email to a group (two part question)
    ... I send out my newsletter, I put my other email address (not the one ... I have been using Paul Berkowitz's Complex HTML X script (adapted ... why is that even if I have the SPAM filters on ...
    (microsoft.public.mac.office.entourage)
  • newsletter software
    ... I'm developing a software to send newsletter to the users of my ... I have a problem on the stats, detecting the opening of the ... The script "detectscript.php" uses the email-id passed to save the ... the response and send it out to the client. ...
    (comp.lang.php)
  • Why does this not work?
    ... use a work around to circumvent this but its causing the script not to ... enter a valid email address. ... If you don\'t receive our newsletter then ... Paul ...
    (microsoft.public.scripting.jscript)
  • Re: [PHP] free allocated memory: HOW ?
    ... ;) I did not omfg YOU! ... are you experiencing severe load on the server whilst the script is running? ... generate each newsletter (including database querys for the customized ... pumping out lots of emails a second] ... ...
    (php.general)
  • Re: form to form transfer?
    ... newsletter" that will automatically take the previous fields and throw it into the newsletter fields and submit it. ... (i dont think submitting into the database will work, ... that the script (PHP LIST) needs to be processed so it ...
    (php.general)