note 38182 added to function.require-once
| From: | iboyvn at yahoo dot com | Date: | Thu, 11 Dec 2003 08:28:45 +0000 |
| Subject: | note 38182 added to function.require-once | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-61779@lists.php.net to get a copy of this message | ||
When I use these code:
define("RELATIVE_PATH", "./");
$strCommonFile = RELATIVE_PATH."includes/common.inc.php";
require_once($strCommonFile);
I got this error message:
Parse error: parse error, expecting `T_CONSTANT_ENCAPSED_STRING' in...
But when I use:
require_once("./includes/common.inc.php");
then everything work fine.
Please, tell me why I got that error message!
Thank, a lot!
----
Manual Page -- http://www.php.net/manual/en/function.require-once.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38182
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38182&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38182&report=yes
Search -- http://master.php.net/manage/user-notes.php