Thursday, October 20, 2011

PHP What the Difference between include and require

The behavior of the two Differ only in Case they Fail.
  • 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 Indispensable for the Application.