Sara Golemon wrote:
>>> bool is_readable ( string filename [, bool use_include_path] )
>>
>> we can always dream ..
I prefer the word "mature" instead of dream ;)
>>
> How about something which will save having to resolve that path twice?
>
> $realpath = stream_resolve_include_path($relativepath);
>
> if ($realpath && is_readable($realpath)) {
> $fp = fopen($realpath, 'rb', false);
> } else {
> /* File isn't readable */
> }
>
> The code for doing this is all in there, it'd just need some quick
> exposing to userspace...
>
> -Sara
that is an interesting suggestion,.. in researching other options, how
about this:
string realpath ( string path [, bool use_include_path])
This makes more sense to me, plus it can be done once and wont have to
worry about including this in the family of file functions. This seems
like a logical place to resolve paths., including file that reside in
the relative include-path.
Think this can fly?
-ralph