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
Is php an oop?
What is the correct and the most two common way to start and finish a php block of code?
Does wordpress run on php 7?
How do you display the output directly to the browser?
Can I learn php in a month?
Can you use php and javascript together?
Define about declare construct?
What is the most common http method?
Tell me what are sql injections, how do you prevent them and what are the best practices?
What are php loops?
How to remove white spaces from the beginning and/or the end of a string in php?
What is a php tag?
What is difference between html and php?
Where is session value stored?
Write a program to display table of a number using php?