note 22896 added to function.include
| From: | mindwiredave at yahoo dot com | Date: | Wed, 03 Jul 2002 15:03:02 +0000 |
| Subject: | note 22896 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32550@lists.php.net to get a copy of this message | ||
<?php
session_start();
echo $conf;
include("d:/www/cs/admin/config.php");
?>
this echos d:/www/cs/admin/config.php and the include successfuly includes the config file.
this:
<?php
session_start();
echo $conf;
include $conf;
?>
does not include the file correctly and my paths are fouled up after that, even though in the
previous code block the echoed path is the same as the successful inclusion path and 'include
$file' appears to be acceptable syntax based on the include function documentation
Any suggestions would be helpful. Thanks
--
http://www.php.net/manual/en/function.include.php
http://master.php.net/manage/user-notes.php?action=edit+22896
http://master.php.net/manage/user-notes.php?action=delete+22896
http://master.php.net/manage/user-notes.php?action=reject+22896