1. Home
  2. Computer Science MCQs
  3. PHP
  4. What is the default value of max_execution_time directive?…

Added 23 Jan 2024

What is the default value of max_execution_time directive? This directive specifies how many seconds a script can execute before being terminated.

  1. 10
  2. 20
  3. 30 Correct answer
  4. 40

Correct answer

C. 30

12 views

MCQSEXAM

Explanation

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.

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More PHP MCQs

Practise all PHP MCQs

Similar MCQs