せかいや

いまいるここを、おもしろく http://sekai-in-the-box.appspot.com/

【PHP】【Eclipse】include_pathの設定方法

PHP for eclipse で「fatal error 'File/Iterator/Autoload.php' not found 」エラー。

コマンドライン実行時はinclude_pathが指定されているが、Eclipse debug モードでは指定できていないため。

解決方法

対象プロジェクトを選択し、右クリック⇒「プリファレンス」⇒「PHP Include Path」。

使用しているPEARディレクトリを設定。でOK。
f:id:sekaiya:20130813211850j:plain