Increase Execution Time

How will you increase execution time of PHP for processing large set of records?

Questions by rubin2008   answers by rubin2008

Showing Answers 1 - 12 of 12 Answers

@thamotharan.r suppose I am developing big website. One page is displaying lots of records and other page is displaying very less records, changing php.ini is not the best solution I guess. Do you have any other solution for this? Please let me know

  Was this answer useful?  Yes

sandipk

  • Feb 8th, 2010
 

To increase the execution time runtime, we can use the ini_set() function.
e.g.
ini_set('max_execution_time','-1'); - it sets maximum execution time to infinity.

  Was this answer useful?  Yes

srera11

  • Jun 24th, 2010
 

set_time_limit() function will limits the maximum execution time.


When called, set_time_limit() restarts the timeout counter from zero. In other words, if the timeout is the default 30 seconds, and 25 seconds into script execution a call such as set_time_limit(20) is made, the script will run for a total of 45 seconds before timing out.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions