1 Replies - 351 Views - Last Post: 28 June 2012 - 01:09 AM Rate Topic: -----

#1 iFuturz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 28-June 12

How will you increase execution time of PHP for processing?

Posted 28 June 2012 - 12:08 AM

How will you increase execution time of PHP for processing large set of records?
Is This A Good Question/Topic? 0
  • +

Replies To: How will you increase execution time of PHP for processing?

#2 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3710
  • View blog
  • Posts: 5,958
  • Joined: 08-June 10

Re: How will you increase execution time of PHP for processing?

Posted 28 June 2012 - 01:09 AM

By using the set_time_limit function. Pass it the number of seconds you want to allow the script to run, or 0 if you want it to have no limit.

You can also set this globally in the PHP config using the max_execution_time directive.
Was This Post Helpful? 2
  • +
  • -

Page 1 of 1