require_once differs functionality from require
| From: | Tom Anderson | Date: | Tue, 06 Jun 2000 16:52:19 +0000 |
| Subject: | require_once differs functionality from require | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-16175@lists.php.net to get a copy of this message | ||
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