What is the default value of max_execution_time directive? This directive specifies how many seconds a script can execute before being terminated.
Correct answer
C. 30
12 views
C. 30
12 views
The default value of max_execution_time is 30 seconds. If a script runs longer, PHP stops it with a fatal error, which protects the server from runaway scripts and infinite loops.
The limit can be changed in php.ini or at run time with set_time_limit(). On the command line (CLI) the default is 0, meaning no limit.
Want more practice? Try the full set of Computer Science MCQs on MCQsExam.com.
Not sure why the answer is C? Ask here and get an explanation.