PHP What the Difference between include and require

October 20th, 2011 by Regaz

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 Indispensable for the Application.

(Visited 1 times, 1 visits today)

Tags:


Comments are disabled