How to get intermediate script results to browser?
From: cool (coo_at_goontrytospamme.dk)
Date: 11/29/04
- Next message: Ramon: "page size?"
- Previous message: P: "Error 1157 Lib File Missing - PHP on Apache on Win98-SE - Install Problem"
- Next in thread: J.O. Aho: "Re: How to get intermediate script results to browser?"
- Reply: J.O. Aho: "Re: How to get intermediate script results to browser?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Ramon: "page size?"
- Previous message: P: "Error 1157 Lib File Missing - PHP on Apache on Win98-SE - Install Problem"
- Next in thread: J.O. Aho: "Re: How to get intermediate script results to browser?"
- Reply: J.O. Aho: "Re: How to get intermediate script results to browser?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|