同僚が完了したプロジェクトを取り上げていますが、改善が必要です。Windows PC に WAMP サーバーをインストールしましたが、このエラーを回避できないという事実を除いて、サーバー上のほとんどの統合は正常に機能しています。
Warning: require_once(DB.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\includes\includes.inc.php on line 40
Fatal error: require_once() [function.require]: Failed opening required 'DB.php' (include_path='.;C:\php\pear') in C:\wamp\www\includes\includes.inc.php on line 40
まず、pear フォルダーがある C:\php\pear フォルダーがありません。
C:\wamp\bin\php\php5.3.13\pear
WAMP でサービスを停止し、php.ini に移動してこれらの設定を変更しました。
; Windows: "\path1;\path2"
include_path = ".;C:\wamp\bin\php\php5.3.13\pear"
彼の .htaccess ファイルを調べて、私のインクルード パスを上書きしている可能性のあるものがないか調べましたが、何もありませんでした。
彼が include_path セットを持っている彼のプロジェクトで私が見た唯一の場所は次のとおりです。
ini_set('include_path', ini_get('include_path') . ':'. $_SERVER['DOCUMENT_ROOT'] ."/capeadmin/includes");
私はこれに指を置くことができないようです。
どんな助けでもありがとう!