Online Shopping : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to
Did You Find This Entry Useful?

25 of 27 people (93%) answered Yes
Recently 10 of 10 people (100%) answered Yes


what is the difference between include once() require once()?

Mar 24th, 2008 20:38
ha mo, Jason Benson, amu puyal,

require() and include() are identical functions except in how they 
handle errors.
require_once() will generate a fatal error if the file specified is not 
include_once() will not generate a fatal error and the script will 
continue past this.
hope that helps!