PHP What the Difference between include and require

October 20, 2011 | By Regaz | Filed in: Uncategorized.

PHP 5 Difference include/require

The behavior of the two Commands Differ only in Case they Fails.

  • Failure to Incorporate a file inserted by an include Determine only a Warning
  • Failure to Incorporate a file inserted by a require Determine a Failure!

So you should use a require only when the File’s Content is Strictly Essential for the Application.


Tags: