Difference between include_once() and require_once().

December 19, 2009 | Filed Under PHP | Comments Off

Both are  used to includes files once. Means PHP will check if the file has already been included, and if so, not include (include) it again.

include _once() create  warning  if file not found and  execute   script.

require_once() create fatal  error  if file not found and  terminate  script.

Comments

Comments are closed.

© PHPInterviewQuestion.com 2009 - 2012

eXTReMe Tracker