DebianSqueezehttp://www.example.com/
で実行中のドキュメントがあります。/home/www/example.com/www
/home/www/example.com/
www/
index.php
php/
include_me.php
php.iniで、コメントを外して次のように変更しました。
include_path =".:/home/www/example.com"
wwwのスクリプトindex.phpには、がありrequire_once("/php/include_me.php")
ます。PHPから取得する出力は次のとおりです。
Warning: require_once(/php/include_me.php) [function.require-once]: failed to open stream: No such file or directory in /home/www/example.com/www/index.php on line 2
Fatal error: require_once() [function.require]: Failed opening required '/php/include_me.php' (include_path='.:/home/www/example.com') in /home/www/example.com/www/index.php on line 2
ご覧のとおり、エラーに応じてインクルードパスが正しく設定されています。しかし、私がそうすればrequire_once("../php/include_me.php");
、それは機能します。したがって、include-pathに問題がある必要があります。
誰かが私がそれを修正するために何ができるか知っていますか?