Increase PHP Script Execution Time

  • Added:
  • |
  • In: Basic PHP

I want to sent hundreds of emails using PHP and to increase the execution time I used ini_set('max_execution_time', 10); but after sending just 30 emails browser shows me a blank page and does not send email to all.

I also changed the limit to 300, 600 ..

This Question Has 1 Answeres | Orginal Question | PHP Ferrari

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).

Meet with owner

Sajjad Hossain

Hey, I am Sajjad, working in web development sector since 2012. I love to do amazing things. Let's do a project together.
Connect Social With PHPAns