If you use PHP + Apache, the default setting, PHP coding error is not prompted, which is very inconvenient for development. You can use the following steps to turn on the error hint (Cetnos, for example):
1. Open the php.ini file.
This file is in:/etc/php.ini.
2. Search and modify the downstream
Display_errors = Off
Change the off value to on
3. Search downstream
error_reporting = E_all & ~e_deprecated & ~e_strict
Revision changed to
error_reporting = E_all | E_strict
4. Modify Apache's httpd.conf,
Files in/etc/httpd/conf/httpd.conf
Add the following two lines:
Php_flag display_errors on
Php_value error_reporting 2039
5. Restart Apache and it will be OK.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The above describes the open PHP and Apache error hints, including the content, I hope the PHP tutorial interested in a friend helpful.