$Date: 2004/08/07 14:28:58 $
This example requires :
This example will show you how to handle standard html_progress api exceptions.
An error was volontary made on call of setAnimSpeed method (line 5). As it's an API exception, default is to die after error was raised, so none lines below line 6 will be executed.
If display_errors php.ini directive is ON, result is sent to browser. But as there is no error_log handler defined in html_progress (by default), even if log_errors is ON, no action will be taken.
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); |
None, all default options are used. These options are :
[Top]
Exception: invalid input, parameter #1 "$delay" was expecting "integer", instead got "string" in html_progress::setanimspeed (file d:\php\pear\html_progress\examples\errorstack\secure\display_errors-p1.php at line 5)
[Top]
[Top]