PHP|include{ファイル名}: failed to open stream: No such file or directory の出力原因
『include{ファイル名}: failed to open stream: No such file or directory』が出力される原因についてメモ
スポンサーリンク
『include{ファイル名}: failed to open stream: No such file or directory』の出力原因
『include{ファイル名}: failed to open stream: No such file or directory』は、PHPでファイルやディレクトリを操作する際に該当のファイルやディレクトリが存在しない場合に出力されます。
例えば、以下のように実際にファイルがないのにファイルの読み込みを行うような場合です。
include "index.php";
ファイルやディレクトリのパスを見直すといいでしょう。
更新日:2018年10月05日
作成日:2018年10月05日