require_once differs functionality from require

[email protected] ("Tom Anderson") Tue, 06 Jun 2000 09:52:19 PDT
Newsgroups php.version4
Message-ID <[email protected]>
The following will work

if ($loggedIn = $sess->is_registered("auth"));
require ($loggedIn) ? 'header.inc': 'header_login.inc';

but if require is substituted with require_once, it will error with:
Parse error: parse error, expecting `T_CONSTANT_ENCAPSED_STRING' in...

Is this functionality correct, that is, is require_once more precise about 
what it does than require, or is this a bug?

Thanks,
Tom



________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com