RE: [PHP-DEV] file_exists and array_merge_clobber
| From: | Lukas Smith | Date: | Tue, 30 Sep 2003 18:20:52 +0000 |
| Subject: | RE: [PHP-DEV] file_exists and array_merge_clobber | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4623@lists.php.net to get a copy of this message | ||
> From: Justin Hannus [mailto:jhannus@visualconceptsinc.com]
> Sent: Tuesday, September 30, 2003 8:12 PM
>
> I agree with Wez, what if you are searching for a file with a relative
> file
> path, e.g:
>
> <?php
> if (file_exists("somefile.php"))
> // ...
>
> would return true if "somefile.php" is not in the current directory
but is
> in your include path, not what you expected. Besides, you can easily
> implement this functionality in php.
Uhm .. there is a parameter to control of you want to search your
include path which defaults to off.
Finally as an alternative I said I would also be fine if I could pass
multiple path's to check to file_exits().
Regards,
Lukas