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.


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: (it is near the bottom)