note 26176 rejected from function.require by spic
| From: | spic@php.net | Date: | Mon, 21 Oct 2002 14:58:08 +0000 |
| Subject: | note 26176 rejected from function.require by spic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-38368@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