Re: include path confusion
| From: | Randy | Date: | Thu, 11 Jan 2001 15:09:52 +0000 |
| Subject: | Re: include path confusion | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34010@lists.php.net to get a copy of this message | ||
Thanks for the info Brian. But what about the path you have in
the include statement? IE: include "../path1/file.php"
Does it ignore the path? Try the path? Or just append that path
to the end of each path in the include_path?
Best regards,
Randy
Wednesday, January 10, 2001, 5:06:44 PM, you wrote:
BC> Hello Randy,
BC> (R == "Randy") foxpro@minutemanups.com writes:
R>> How I think it SHOULD work is like DOS - First it looks at where
R>> you say it is. If not there, it looks in the current directory.
BC> Let's not forget Unix. ;-)
R>> If not there, it looks in the directories in the path. I'm sure PHP
R>> doesn't work this way, but I can't figure out how it does work.
BC> % egrep include /usr/local/lib/php3.ini
BC> include_path = ; UNIX: "/path1:/path2" Windows: "\path1;\path2"
BC> It checks each path in order. It will stop when it finds the file in
BC> the first available location.
R>> Please, if anybody understands this, let me know.
BC> -Brian
BC> --
BC> An adequate bootstrap is a contradiction in terms.