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
What are the ways to define a constant in php?
How to execute a function in php?
Tell me when a conditional statement is ended with an endif?
Differentiate echo vs. Print statement.
Is laravel frontend or backend?
What is difference between mysql_connect and mysqli_connect?
What are the main error types in php and how do they differ?
What does a special set of tags do in php?
How to concatenate two strings in php?
Write a program to display reverse of any number?
So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?
What is Type hinting in PHP?
What is nginx and what is it used for?
Why die is used in php?
why did u want to leave your past organisation?