PHP Error hints
Project error, but run the page blank, do not know where the wrong.
in php.ini error_reporting = E_all Modified
Run discovery or no error prompt after reboot
------to solve the idea----------------------
Display_errors = On
So you can see the error message
Only error_reporting = E_all is useless
Because error_reporting does not take effect until the program runs, what if the error occurred during compilation?
------to solve the idea----------------------
References:
in php.ini there are the following
; Display_errors
; Default Value:on
; Development Value:on
; Production Value:off
I removed the 1, 2, semicolon.
So I have a question, will those warnings be shown?
Because the previous connection to MySQL (said this connection will be abandoned later), always have a warning, and later with error_reporting set ignore warning
These are the instructions section in the configuration file, the actual configuration instructions are as follows
Http://cn2.php.net/manual/zh/errorfunc.configuration.php#ini.error-reporting
If the moderator provides you with
Display_errors = On
Also for the server on the line should not open it, the error message will show you the path of the file and resource information (such as the database account password), you can let it appear in Apache or Nginx errorlog
PS: Learn php to read the manual more