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 are computer variables?

528


What are getters and setters php?

539


What is the maximum size of a database in mysql?

523


What is isset function in php?

563


Is it possible to destroy a cookie?

532






Is php used in 2019?

529


Which MySQL function would you use to select a database?

562


What is php rest api?

529


What is abstraction php?

529


How check field is empty or not in php?

540


What is action hooks and filter hooks?

490


How do you execute a php script from the command line?

523


How do you debug php?

560


What is the use of mysql_fetch_array in php?

505


What is better .net or php?

574