Ubuntu PHP encoding error does not prompt how to solve?

  
                

For PHP programmers, it is very troublesome to make mistakes when encoding PHP. The default PHP development environment in Ubuntu 14.04 will not have error prompts. How to configure it? Let's get to know it.

Ubuntu 14.04, the default PHP development environment configuration is not suggesting all warnings, error messages. This is very painful for developers. Record the configuration method here, and keep it for future use. The script house's Xiaobian has also found two kinds of oh, the first one is very simple, but the step span is large, the second, the steps are detailed and can not be detailed. Everyone just took away.

Lite Steps:

1. Modify the php configuration file php.ini

The code is as follows:

sudo gedit /etc/php5/apache2/php .ini

Change display_errors = Off to display_errors = On

Change error_reporting = xxx to error_reporting = E_ALL

Copyright © Windows knowledge All Rights Reserved