How can we increase the execution time of a PHP script?

Answer Posted / anonymous

Using the funtion set_time_limit().It sets the number of
seconds a script is allowed to run .If this is reached
script returns a fatal error.The default limit is 30
seconds .If seconds is set to zero
no time limit is imposed.When called , set_time_limit()
restarts the timeout counter from zero.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.

Is This Answer Correct ?    27 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between mysqli and mysql?

536


What are the rules in creating php variable?

529


Is multiple inheritance supported in php?

565


Tell me what is the use of the function htmlentities?

519


Explain what is memcache?

510






Can a super () and this () keywords be in same constructor?

487


How to submit form without a submit button.

539


What is associative array in php?

536


Explain me what is the difference between explode() and split() functions?

540


How can you declare a constant variable in php?

566


What is isset in php form?

536


How long does a session last in php?

514


What is the difference between session_unregister() and session_unset()?

577


What is the default session time in php?

532


What is the difference between get and post method in php?

501