note 41404 added to function.include-once
| From: | FHlistatHotmail dot com at rn2 dot php dot net | Date: | Thu, 08 Apr 2004 17:41:09 +0000 |
| Subject: | note 41404 added to function.include-once | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67834@lists.php.net to get a copy of this message | ||
With Apache 2.0.49 running on Windows 2000, if you use two different relative path to the same file
in an include_once(), the file is considered as two different files and it's been reloaded. On
an older version (don't know the version), it work.
For exemple:
directory structure:
root
root/dir1
root/dir1/subdir
lib.php located in the root folder
the include_once from root/dir1 will be
include_once("../lib.php");
the include_once from root/dir1/subdir will be
include_once("../../lib.php");
Is anybody know if there are an Apache setting that will fix this?
Thanks
----
Manual Page -- http://www.php.net/manual/en/function.include-once.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41404
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41404&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41404&report=yes
Search -- http://master.php.net/manage/user-notes.php