Thanks all who replied. So the include path used in file2.php should be
relative to the working directory where file2.php is located. Yes, I have
error_reporting=E_ALL in my php.ini. The log shows include_path=.|.
But in my situation, it took me a while to figure out what that '.' really
Hello,
Here are the two scripts. The result is 'var is' rather than 'var is
foo'. My suspect is I did not set the file path right in 'include'. So
in file2.php, how should I get the actual absolute path it really gets for
file1.php? Is it stored in some environment variable or something? I'd
Bing Du wrote:
Hello,
Here are the two scripts. The result is 'var is' rather than 'var is
foo'. My suspect is I did not set the file path right in 'include'. So
in file2.php, how should I get the actual absolute path it really gets for
file1.php? Is it stored in some environment
On 27 April 2006 15:25, Brad Bonkoski wrote:
Bing Du wrote:
Hello,
Here are the two scripts. The result is 'var is' rather than 'var
is foo'. My suspect is I did not set the file path right in
'include'. So in file2.php, how should I get the actual absolute
path it really gets
Brad Bonkoski schrieb:
Bing Du wrote:
Hello,
Here are the two scripts. The result is 'var is' rather than 'var is
foo'. My suspect is I did not set the file path right in 'include'. So
in file2.php, how should I get the actual absolute path it really gets
for
file1.php? Is it stored
2006/4/27, Bing Du [EMAIL PROTECTED]:
Hello,
Here are the two scripts. The result is 'var is' rather than 'var is
foo'. My suspect is I did not set the file path right in 'include'. So
in file2.php, how should I get the actual absolute path it really gets for
file1.php? Is it stored in
6 matches
Mail list logo