Configure the php page to display various syntax errors
- 2020-09-28 08:49:31
- OfStack
Finding the problem is more important than solving the problem. Using php INTEGRATED development environment (Appserv) page will prompt various syntax errors, but configuring the development environment yourself will not prompt the error, especially when it is not syntax errors, such as the call of com component, when it is intolerable without knowing where the problem occurs, then it needs to be configured separately
At this time their own configuration directory file
pic
Configure apache This file D:\AppServ\apache\conf\ httpd.conf
will
I'll put it in the last two lines
Configuration D: \ AppServ \ php \ php ini
will
Put it in the php configuration file and restart apache
OK!
At this time their own configuration directory file
pic
Configure apache This file D:\AppServ\apache\conf\ httpd.conf
will
php_flag display_errors on
php_value error_reporting 2039
I'll put it in the last two lines
Configuration D: \ AppServ \ php \ php ini
will
display_errors = On
error_reporting = E_ALL | E_STRICT
Put it in the php configuration file and restart apache
OK!