connection drops while script running



I have a pretty basic emailing script that sends a relatively small number
(150) of html emails.
The emails are compiled, personalised from a mysql db subscribers list,
and sent using mail() - after sending, a small summary html page is sent to
the user with number sent, time taken and a simple navigation choice. Up to
about 100 emails it all works fine - this takes the server about 27 secs .
Any more than that and although the emails are sent ok the connection to the
browser appears terminated - it looks like a 30 sec timeout. The user is
left with a 'connection failed' screen in the browser and the worrying
sensation that the send has failed.

I have the max_execution_time set for 90 secs, (this can be set locally with
a php.ini on an individual directory basis on this server) , no error
messages are sent, and the script obviously completes the emailing (as, on
test, they all arrive). http_connection is set globally on the server to
Keep-Alive .It's apache/linux on the server.

I have an ongoing support ticket with the host company but so far no helpful
response. It feels distincly like a server decision but that's not my area -
I dont know the right questions.

Are there any techniques for keeping the connection alive while a longish
script executes?
Any suggestions?


.



Relevant Pages

  • Re: OT: spammers are using my domain again
    ... our virtual hosting servers and boom 150 returned emails from the ... Server load wasn't jumping ... Its a simple script that is written in php and can use a DB to retrieve ... they do anything) and the other hosting company that the file was ...
    (Fedora)
  • Re: deleting emails from server for Exchange accounts
    ... which are normally available for IMAP and POP accounts to leave a copy ... on the server are no where to be seen for Exchange accounts. ... I'll have to tweak how it the script functions but boy does it irk me ... but didn't move any emails to it. ...
    (microsoft.public.mac.office.entourage)
  • Multiple retrievals of the same emails
    ... Entourage just downloaded all my emails (about ... from the server - emails from December that I had already retrieved on ... > The script corrects most of my munged mail... ... > aHeader to receivedHeader ...
    (microsoft.public.mac.office.entourage)
  • Re: connection drops while script running
    ... of html emails. ... The emails are compiled, personalised from a mysql db subscribers list, and sent using mail- after sending, a small summary html page is sent to the user with number sent, time taken and a simple navigation choice. ... http_connection is set globally on the server to Keep-Alive .It's apache/linux on the server. ... So just use the PHP script to create a message template and queue the information, then do the actual personalization and emailing in a batch job. ...
    (comp.lang.php)
  • Re: URLs mysteriously altered in HTML email
    ... I did argue against HTML emails but the customer is always right eh? ... on the domain server and one to the subscription page (for unsubscribing, ... when the script is operated from my customer's ...
    (comp.lang.php)