Re: include path confusion
| From: | Brian Clark | Date: | Thu, 11 Jan 2001 17:03:31 +0000 |
| Subject: | Re: include path confusion | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34040@lists.php.net to get a copy of this message | ||
(BC == "Brian Clark") brianj@fusionwerks.com writes:
R>> Thanks for the info Brian. But what about the path you have in the
R>> include statement? IE: include "../path1/file.php"
R>> Does it ignore the path? Try the path? Or just append that path to
R>> the end of each path in the include_path?
BC> Using PHP 3.0.18, every, single time I've used something like:
BC> include('../farmers/underwear.php');
BC> It works as expected.
I'm half alseep. I see what you're saying. I suppose if you did:
include('corn.php');
It's going to try each path. Ie. ".:/include:/usr/src"
./corn.php
(if not in .) /include/corn.php
(if not in /include) /usr/src/corn.php
(if not in /usr/src) Error.
And I *suspect* that even if you use ../corn.php, it's going to try
the include paths in the same way.
../corn.php is equivalent to ./../corn.php
-Brian
--
Like punning, programming is a play on words.