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


Search
I am...

Sajjad Hossain

I have five years of experience in web development sector. I love to do amazing projects and share my knowledge with all.

NEED HOSTING?
Are you searching for Good Quality hosting?
You can Try It!
Connect Social With PHPAns
Top