Re: Please check this program (its working)
| From: | Richard Davey | Date: | Fri, 09 Jan 2004 11:55:09 +0000 |
| Subject: | Re: Please check this program (its working) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174107@lists.php.net to get a copy of this message | ||
Hello Ryan,
Friday, January 9, 2004, 7:20:09 AM, you wrote:
RA> Its working perfectly well...but will I have problems if I try it on a large
RA> email list or
RA> will it hog resources....etc? ANY advice appreciated.
Stick this at the bottom of your loop (INSIDE the loop!):
set_time_limit(30);
The problem with your script is that if it takes a long time to run,
i.e. there are lots of email addresses then it'll probably time out on
you. The above command will reset the time-out limit after each email
is sent, preventing this problem.. so you can leave the script running
until it completes with no "Execution time" error.
--
Best regards,
Richard mailto:rich@launchcode.co.uk