Multiple choice technology web technology

The difference between require and include is that include raises an exception if the file is not found while require continues the execution.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The statement is backwards - require() raises a fatal error (stops execution) if the file is not found, while include() only raises a warning and continues execution. This is a fundamental difference in how PHP handles missing files between these two constructs.