Failed opening required


Failed opening required

とある人が、

下記のように、外部のHTMLファイルを読み込ませていたら

<?php include("include.html"); ?>

十数回に一度ぐらいの割合で、下記のエラーがでていた。

PHP Fatal error:  Unknown: Failed opening required '/home/xxx/xxx.html' (include_path='.:/usr/local/include/php') in Unknown on line 0

原因がつかめず、とりあえずreadfileを使うようにしてもらった。

<?php readfile("include.html"); ?>

何が悪いんだろ。。

  • このエントリーをはてなブックマークに追加

コメントをどうぞ

メールアドレスが公開されることはありません。