note 22781 added to function.include
| From: | david at jumpinternet dot com | Date: | Sat, 29 Jun 2002 18:49:49 +0000 |
| Subject: | note 22781 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32415@lists.php.net to get a copy of this message | ||
This screwed me up for hours
<?
include ("test.mysite.com/libs/includedfile.php");
?>
This WILL include the file without errors, but the scope of variables and functions will not work.
Change the path to a system directory, ie:
<?
include ("usr/apache/htdocs/file.php");
?>
--
http://www.php.net/manual/en/function.include.php
http://master.php.net/manage/user-notes.php?action=edit+22781
http://master.php.net/manage/user-notes.php?action=delete+22781
http://master.php.net/manage/user-notes.php?action=reject+22781