note 26176 added to function.require

From: Date: Mon, 21 Oct 2002 14:52:05 +0000
Subject: note 26176 added to function.require
Groups: php.notes 
Request: Send a blank email to php-notes+get-38367@lists.php.net to get a copy of this message
$test="$DOCUMENT_ROOT/cs388/login.fns"; require_once($test); Why am I receiving the following error: Parse error: parse error, expecting `T_CONSTANT_ENCAPSED_STRING' in /home/www/cs/html/cs388/login.php on line 5 If I use, require then it works. Suggesting alternative ways to do this is nice, but I prefer to know why this doesn't work. Using PHP Version 4.0.1pl2 Thanx -- http://www.php.net/manual/en/function.require.php http://master.php.net/manage/user-notes.php?action=edit+26176 http://master.php.net/manage/user-notes.php?action=delete+26176 http://master.php.net/manage/user-notes.php?action=reject+26176

« previous php.notes (#38367) next »