[PHP-users 1752] Re: file() の戻り値について (was include_path を取得するには?)

Takahisa(CORE) php-users@php.gr.jp
Mon, 3 Sep 2001 16:29:40 +0900


高久@コアです。

> さらに突き詰めていくと、
>
>     http://www.php.net/manual/ja/function.ini-get.php
>
> によると、file() には、「オプションの2番目の引数を使用して、これに"1"を設
定
> することにより、 include_path のファイルの検索も行うことができます。 」と
い
> う機能があるようです。

互換を考えるとこれはいいかも知れません。
また、.htaccess 以外で(php.ini とか php スクリプトそのものとか)、設定オプ
ションをセットすることもできるので、そんなときは、ini_get がいいようです。
こんな記述がありました。

THIS WILL NOT WORK as it reads the master value (ie the value as set in
php.ini or similar). Use ini_get() to get value as applied to scripts under
the influence of the .htacess file.

takahisa@corecore.co.jp