Timeout and Safe Mode

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
harmonyd
Forum Newbie
Posts: 1
Joined: Thu Aug 26, 2004 6:28 pm

Timeout and Safe Mode

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

cron job is probably the best plan..
Post Reply