include path confusion
| From: | Randy | Date: | Mon, 08 Jan 2001 19:01:45 +0000 |
| Subject: | include path confusion | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-33282@lists.php.net to get a copy of this message | ||
I'm confused on what should be a simple issue - where does php
look for an include file in the following example? My test
results seem very confusing and the docs never mention it.
In the program:
include "../test/sample.php";
In php.ini:
include_path="../include"
Does php:
A. Look in the dir "../test" for sample.php first and if not found,
look in "../include" for sample.php?
B. Ignore the dir "../test/" and look in "../include" for
sample.php?
C. Look in dir "../test" for sample.php and if not found, look
in "../include" for "../test/sample.php"? (and can't find it as
invalid)
D. Look only in dir "../include" for "../test/sample.php"? (and
can't find it as invalid)
Does it work exactly the same for REQUIRE?
TIA
--
Best regards,
Randy