PHP What the Difference Between Include and Require

October 20, 2011 | By Duchateaux.

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.


QuickChic Theme • Powered by WordPress