I came across this problem recently -also a similar prob with basedir
restrictions !
I even wrote to the php guys about the documentation and got told if was
documented but hard to find and it wasn't there
fault that the search on php.net doesn't work very well !
Which I have to admit didn't leave
The directory structure is as follows:
/
|-- demo.php
|-- inc/
|-- inc1.php
|-- inc2.php
=== file demo.php ==
=== file inc/inc1.php ==
== file inc/inc2.php ==
this is a test
The above inc/inc1.php is ok for testing.And this would be ok too:
Problem occurs when the code is like this
ow does php determine the include_path in this kind of
situation?
-Original Message-
From: Nicholas Robinson [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 2:54 PM
To: CaiYongzhou; Php General
Subject: Re: [PHP] Problem occurs when included file includes anther
file.
You can set the
ooops, sorry, ignore my last post, I must get larger text on my screen! Missed
the .: element of your path!
Can you confirm that this file is a replacement for demo.php?
"Problem occurs when the code is like this
"
If so, then it won't find it because you haven't include ./inc in your include
You can set the path(s) in php.ini
Edit the file and search on 'include'
HTH
Nick
On Friday 08 Aug 2003 6:38 am, CaiYongzhou wrote:
> The directory structure is as follows:
> /
>
> |-- demo.php
> |-- inc/
> |
> |-- inc1.php
> |-- inc2.php
>
> === file demo.php ==
> require 'inc/inc1.ph
nc01.php from demo.php: ok in root/./inc01.php
Indeed, the PHP doc should be updated on that point.
I do agree with you, after struggling a while for the
same kind of problem :-)
But I've got all explanations below.
Nicholas Robinson wrote:
The directory structure is as follows:
|-- demo.php
|-- i
re ok except in the case we use
'./'.
-Original Message-
From: Nicholas Robinson [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 3:15 PM
To: CaiYongzhou; Php General
Subject: Re: [PHP] Problem occurs when included file includes anther
file.
ooops, sorry, ignore my last post
7 matches
Mail list logo