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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]