note 34973 added to function.include
| From: | cmerot at rack1 dot php dot net | Date: | Wed, 13 Aug 2003 20:11:39 +0000 |
| Subject: | note 34973 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-54106@lists.php.net to get a copy of this message | ||
i've noticed something not explained here :
i have 3 files :
./test.php, ./test/test2.php, ./test/test3.php
example working when i get ./test.php :
./test.php
<?php include('./test/test2.php'); ?>
./test/test2.php
<?php include('test3.php');?>
./test/test3.php :
<?php echo "Success !!";?>
example not working when i get the same ./test.php :
./test.php
<?php include('./test/test2.php');?>
./test/test2.php
<?php include('./test3.php');?>
./test/test3.php :
<?php echo "Success !!";?>
Does it mean including a file can make the relative path change ?
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34973
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34973&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34973&report=yes