Re: include_path
| From: | Christoph Grottolo | Date: | Mon, 03 Mar 2003 22:17:17 +0000 |
| Subject: | Re: include_path | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18821@lists.php.net to get a copy of this message | ||
Hi
>The include_path setting is:
>".;C:/xxx/yyy/includes/others;C:/xxx/yyy/includes/myfiles"
>I get authentication.php in my include path and, unfortunatly, an other authentication.php does
>exist in the 2° path and is processed before my authentication.php file, and maybe gets a function
>name
>like one of mine.
>When, in a file I write: include("authentication.php"), my file is never included; php
>includes the first
>one that finds.
>What can I do to resolve this problem?
Rename your file
--or--
put it one directory below and then include
("newdir/authentication.php") so it won't be found in the first .
--or--
ini_set("include_path","onlymyincludepath") before you start your
includes.
Christoph