0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

PHPで発生したエラーを画面に出力する方法

Posted at

PHPのエラーをブラウザに表示させる方法

sudo vi /etc/php.ini

「/display」で検索

「エラーをHTML出力の一部として画面に出力するかどうか」の設定。OffをOnに変更。

display_errors = Off → display_errors = On

「display_errorsをOnにしても、自分で書いた?>内のプログラムエラーしか表示しませんよ」という設定。OffをOnに変更。

display_startup_errors = Off → display_startup_errors = On

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?