Online Shopping : Computers : Programming : Languages : PHP

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

11 of 13 people (85%) answered Yes
Recently 9 of 10 people (90%) answered Yes


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

Mar 24th, 2008 20:37
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!