set_error_handler()


#1

I’d like to create an error page in my programm where I’ll reference if occured any error (automaticly) How can I do it???
Please help.


#2

there are a couple of ways to do it. In the program itself you can redirect to an error page with the header() function or with a meta refresh tag (with a die() after it). You might also wish to check out the Error Hnadling functions. There are a couple of functions to generate user level errors.

Reference:
http://www.php.net/errorfunc
http://www.php.net/header
http://www.htmlhelp.com/reference/html40/head/meta.html (it is near the bottom)