My machine is fedora 3 apache 2.0.54, php 4.1.11 mysql 4.1.12.
From database db1, colum db_test has file path.
One of them is
$db_test = "../../t/test_php.php";
The directory structure is
/home/t
/home/t2
And, "../t/test_path.php" is
<?
echo "Show me the Code~";
?>
Now, I made two files for testing,
/home/t2/a.php:
<?
$db_test = "../t/test_path.php";
include ($test);
?>
/home/t2/b.php:
<?
include (./a.php);
?>
However, the result is could not find "../t/test/test_path.php ".
So, I have moved the "../t/test/test_path.php" to " /home/t2.
And, change the files as
/home/t2/a.php:
<?
$db_test = "../t2/test_path.php";
include ($test);
?>
/home/t2/b.php:
<?
include (./a.php);
?>
Am I missing sothething?
Now I can see the result, "Show me the Code~".
Why happens this prblem?
And what is the solution?