Hi,
I have a web site that sends emails to some 17000 newsletter
subscribers, the script takes about 5 minutes to complete the task,
depending of the size of the attachment.
The problem is that sometime it takes so much time that is difficult
to know if something is going wrong, and sometimes the script
terminates with timeout.
I thought to solve the timeout question with a set_limit_time( ) but i
am not sure where to put this line: inside the loop that send emails
or at the beginning of the page?
Second question is, how to control the flow and avoid that the site
administrator close the browser or click the stop button thinking that
the site is not working? could register_shutdo wn_function be the
solution?
thanks,
stefano
I have a web site that sends emails to some 17000 newsletter
subscribers, the script takes about 5 minutes to complete the task,
depending of the size of the attachment.
The problem is that sometime it takes so much time that is difficult
to know if something is going wrong, and sometimes the script
terminates with timeout.
I thought to solve the timeout question with a set_limit_time( ) but i
am not sure where to put this line: inside the loop that send emails
or at the beginning of the page?
Second question is, how to control the flow and avoid that the site
administrator close the browser or click the stop button thinking that
the site is not working? could register_shutdo wn_function be the
solution?
thanks,
stefano
Comment