Page 1 of 1

difference b/w include and require

Posted: Fri Mar 17, 2006 5:52 am
by josh4php
hi group,

please tell me difference b/w include & require


thanks

Posted: Fri Mar 17, 2006 5:54 am
by Weirdan
PHP Manual wrote: require() and include() are identical in every way except how they handle failure. include() produces a Warning while require() results in a Fatal Error. In other words, don't hesitate to use require() if you want a missing file to halt processing of the page. include() does not behave this way, the script will continue regardless.