PHP encoding error does not show error message prompt solution. Using PHPApache for programming, PHP encoding errors are not prompted under the default settings, which is inconvenient for development. You can use the following steps to enable the error prompt: 1. enable PHP Apache programming. by default, PHP encoding errors are not displayed, which is inconvenient for development. Follow these steps to enable the error prompt:
1. open the php. ini file.
Take my ubuntu as an example. the file is in the/etc/php5/apache2 directory.
2. search and modify the downstream, and change the Off value to On
Display_errors = Off
3. search downstream
Error_reporting = E_ALL &~ E_NOTICE
Or search:
Error_reporting = E_ALL &~ E_DEPRECATED
Change
Error_reporting = E_ALL | E_STRICT
4. modify httpd. conf of Apache,
Take my Ubuntu as an example. the file is in the/etc/apache2/Directory. this is a blank file.
Add the following two lines:
Php_flag display_errors on
Php_value error_reporting 2039
5. restart Apache and you will be OK.
Restart command: sudo/etc/init. d/apache2 restart
I hope the above website will benefit you
For Apache coding in, PHP encoding errors are not prompted by default, which is inconvenient for development. Follow these steps to enable the error prompt: 1. open...