Posted by Gordon Burditt on 07/17/07 23:09
>I have to develop a script to be run nightly to go through a database
>and send emails based on conditions. It's a large database, and there
>are several thousands of emails to be sent during the week everyday.
>The script will be run with a cron job at midnight or so.
>
>I was wondering if PHP is suitable for this, or may it be problematic,
>for instance would its execution abort after a certain amount of time?
>Or is it perfectly fine for this task?
You may want command-line PHP for this task. The interface is a
little different (e.g. no $_GET and $_POST) but you can set different
parameters and I believe the run time limit defaults to infinite.
Anyway, the parameters can be put in a different .ini file and set
differently than for web-based PHP.
[Back to original message]
|