I want to send hundreds of emails using PHP. To increase the execution time, I used ini_set('max_execution_time', 10); but after sending just 30 emails the browser shows me a blank page and does not send all of the emails.
I also changed the limit to 300, 600 ..
To increase the script execution time, you can use the following snippet at the top of your script. ini_set ( 'max_execution_time' , '300' ); In the above example, it would set the max_execution_time directive to 300 seconds.
Look for : $cfg['ExecTimeLimit'] = 600; You can change '600' to any higher value, like '6000'. Maximum execution time in seconds is (0 for no limit). This will fix your error.
Try set_time_limit(0);
at the top of your script.
set_time_limit sets the maximum execution time in seconds. If set to zero, no time limit is imposed (see PHP manual).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With