What difference between require() and require_once().

December 19, 2009 | Filed Under PHP | 1 Comment

Require()

The  Require() is  used to include a file, It create fatal  error if file not found and  terminate  script.

require_once()

The require_once() to require() except PHP will check if the file has already been included, and  if so, tricor online not include (require) it again.

Comments

One Response to “What difference between require() and require_once().”

  1. Kalim

    good question…

© PHPInterviewQuestion.com 2009 - 2012

eXTReMe Tracker