Online Shopping : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

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

Entry

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 
found.
include_once() will not generate a fatal error and the script will 
continue past this.
See: http://us3.php.net/manual/en/function.require.php
and: http://us3.php.net/manual/en/function.include.php
hope that helps!
JB
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com