LoginSignup
4
4

More than 5 years have passed since last update.

[PHP]ini_setについて

Last updated at Posted at 2018-12-24

phpファイル内に、下記を記述することで、エラーを表示してくれる。

<?php
ini_set('display_errors', 1);

エラーの例
スクリーンショット 2018-12-23 22.34.34.png

その他ポイント
1. 「1」を「0」に変更すると、エラーを表示しない。
2. エラー文の中に、何行目が怪しいか書いてくれているので、その周囲を中心にチェックできる。

参照:http://php.net/manual/ja/function.ini-set.php
参照:https://web-dev.xyz/php-iniset-displayerrors/

4
4
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
4
4