$Date: 2004/08/07 14:28:59 $
This example requires :
This example will show you how to customize display errors renderers.
An error was volontary made on call of setAnimSpeed method (lines 41 and 56). We have decided to ignore API exception (lines 4 thru 10 and 30), and use our own error handler rather than PEAR_Error (lines 11 thru 29 and 31). Display handler renderer was changed on lines 33 thru 37. So only lines 62 to 65 will be executed to catch HTML_Progress error.
Print out errors (as a part of the output). For production web sites, you're strongly encouraged to turn this feature off, and use error logging instead. Keeping display_errors enabled on a production web site may reveal security information to end users, such as file paths on your Web server, your database schema or other information.
1 | ini_set('display_errors', false); |
Log errors into a log file (server-specific log, stderr, syslog ...) As stated above, you're strongly advised to use error logging in place of error displaying on production web sites.
1 | ini_set('log_errors', true); |
Default options below are used :
Only option changed is :
[Top]
Error: invalid input, parameter #1 "$delay" was expecting "less or equal 1000", instead got "10000" Catch HTML_Progress error
Function: html_progress::setanimspeed
File: d:\php\pear\html_progress\examples\errorstack\secure\display_errors-p6.php
Line: 55
[Top]
[Top]