Re: require & include

From: Date: Mon, 22 Oct 2001 23:48:13 +0000
Subject: Re: require & include
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71883@lists.php.net to get a copy of this message
Jtjohnston wrote:
Coverting from perl ... What's the differencw between require and include? Where, when, why?
I forgot from which version, but current PHP's require/include works the same way except - require() raise fatal error, if it can't find file - include() raise warning, if it can't find file requrie_once()/include_once() works almost the same as require()/include() except they include file only once. (Hash table is used to determine if files are included or not) See also get_{required|included}_files() -- Yasuo Ohgaki

« previous php.general (#71883) next »