Page 1 of 1

Timeout and Safe Mode

Posted: Thu Aug 26, 2004 6:28 pm
by harmonyd
I have a database of over 200 newsletter subscribers. I am using Richard Heyes class to setup the newsletter in MIME HTML/TEXT formats. However, I loop through and create a new newsletter for each subscriber, customizing it to them. But I get a big 24 second performance hit when I do this.

The problem is my host runs PHP with safe mode, therefore I am limited to the default 30 second timeout and I can't reset it with the PHP functions. How can I send customized newsletters to a large number of people and overcome the program stopping because of a timeout? Should I set up a cron job? Please advise. Thanks.

Posted: Thu Aug 26, 2004 6:36 pm
by feyd
cron job is probably the best plan..