PHP encoding error does not show error message prompt solution
Source: Internet
Author: User
Using PHPApache for programming, PHP encoding errors are not prompted under the default settings, which is inconvenient for development. Follow these steps to open 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 program OSyntaxHigh using PHP Apache. by default, PHP encoding errors are not prompted, 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
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
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service