require_once vs require question / bug?

From: Date: Thu, 08 Jun 2000 23:54:37 +0000
Subject: require_once vs require question / bug?
Groups: php.dev 
Request: Send a blank email to php-dev+get-20613@lists.php.net to get a copy of this message
The following will work $loggedIn = $obj->check_var("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

« previous php.dev (#20613) next »