display errors problem
| From: | Lee Doolan | Date: | Wed, 07 Aug 2002 17:31:50 +0000 |
| Subject: | display errors problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-111550@lists.php.net to get a copy of this message | ||
I can't seem to display error messages and warnings in the html
output, although errors get logged correctly. I have tried various
settings in php.ini and have looked around on the php site --but
obviously not in the right place. Here is what I believe to be the
relevant portion of my php.ini file:
php.ini> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
php.ini> ; Error handling and logging ;
php.ini> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
php.ini> ; error_reporting is a bit-field. Or each number up to get desired error
php.ini> ; reporting level
php.ini> ; E_ALL - All errors and warnings
php.ini> ; E_ERROR - fatal run-time errors
php.ini> ; E_WARNING - run-time warnings (non-fatal errors)
php.ini> ; E_PARSE - compile-time parse errors
php.ini> ; E_NOTICE - run-time notices (these are warnings which often result
php.ini> ; from a bug in your code, but it's possible that it was
php.ini> ; intentional (e.g., using an uninitialized variable and
php.ini> ; relying on the fact it's automatically initialized to an
php.ini> ; empty string)
php.ini> ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
php.ini> ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
php.ini> ; initial startup
php.ini> ; E_COMPILE_ERROR - fatal compile-time errors
php.ini> ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
php.ini> ; E_USER_ERROR - user-generated error message
php.ini> ; E_USER_WARNING - user-generated warning message
php.ini> ; E_USER_NOTICE - user-generated notice message
php.ini> ;
php.ini> ; Examples:
php.ini> ;
php.ini> ; - Show all errors, except for notices
php.ini> ;
php.ini> ;error_reporting = E_ALL & ~E_NOTICE
php.ini> ;
php.ini> ; - Show only errors
php.ini> ;
php.ini> ;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
php.ini> ;
php.ini> ; - Show all errors except for notices
php.ini> ;
php.ini> #error_reporting = E_ALL & ~E_NOTICE
php.ini> error_reporting = E_ALL
php.ini> ; Print out errors (as a part of the output). For production web sites,
php.ini> ; you're strongly encouraged to turn this feature off, and use error logging
php.ini> ; instead (see below). Keeping display_errors enabled on a production web site
php.ini> ; may reveal security information to end users, such as file paths on your Web
php.ini> ; server, your database schema or other information.
php.ini> display_errors = On
php.ini> ; Even when display_errors is on, errors that occur during PHP's startup
php.ini> ; sequence are not displayed. It's strongly recommended to keep
php.ini> ; display_startup_errors off, except for when debugging.
php.ini> display_startup_errors = On
php.ini> ; Log errors into a log file (server-specific log, stderr, or error_log (below))
php.ini> ; As stated above, you're strongly advised to use error logging in place of
php.ini> ; error displaying on production web sites.
php.ini> log_errors = On
php.ini> ; Store the last error/warning message in $php_errormsg (boolean).
php.ini> track_errors = On
php.ini> ; Disable the inclusion of HTML tags in error messages.
php.ini> html_errors = On
php.ini> ; String to output before an error message.
php.ini> error_prepend_string = "<font color=ff0000>"
php.ini> ; String to output after an error message.
php.ini> error_append_string = "</font>"
php.ini> ; Log errors to specified file.
php.ini> error_log = /home/leed/logs/php.log
php.ini> ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
php.ini> ;error_log = syslog
php.ini> ; Warn if the + operator is used with strings.
php.ini> warn_plus_overloading = Off
--
Flowers of morning glory. +-----------------------------------------+
The sky above this street |donate to causes I care about: |
Begins to overcast. | http://svcs.affero.net/rm.php?r=leed_25|
--Sugita +-----------------------------------------+