|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Excellent!
Just a quick note to say what a brilliant article this is; light to read, full of information and well structured. The Error reporting article doesn't just serve as a good script but as an excellent tutorial for classes!
|
|
#2
|
||||
|
||||
|
Note for PHP < 4.2.0
Just a quick note to point out that if you are using PHP < 4.2 you will need to replace:
'ob_clean();' // lines 112 & 127 with 'ob_end_clean();' 'ob_start();' to make this work. Otherwise very good article has helped me a lot Mike |
|
#3
|
|||
|
|||
|
Building A Generic Error Reporting Class In PHP
Building A Generic Error Reporting Class In PHP
December 11, 2002 - The traditional method of building dynamic, PHP-based Web sites - mixing HTML elements with PHP code - can result in mangled Web pages (and much user angst) if errors take place during script execution. But yes, you can avoid the ugliness - plug in our handy error reporting class, which provides a simple way of trapping script errors and generating consistent, user-friendly error screens. Please discuss this article in this thread. You can read the article here . |
|
#4
|
|||
|
|||
|
If you would like to see an article covering a particular topic, please post your request here.
|
|
#5
|
|||
|
|||
|
Name: olliemaitland
Subject: Excellent! Date: 01-11-2003 16:40:27 MST Just a quick note to say what a brilliant article this is; light to read, full of information and well structured. The Error reporting article doesn't just serve as a good script but as an excellent tutorial for classes! |
|
#6
|
|||
|
|||
|
Name: mickro
Subject: Note for PHP < 4.2.0 Date: 03-19-2003 05:09:00 MST Just a quick note to point out that if you are using PHP < 4.2 you will need to replace: ob_clean(); // lines 112 & 127 with ob_end_clean(); ob_start(); to make this work. Otherwise very good article has helped me a lot Mike |
|
#7
|
||||
|
||||
|
Fatal error: Call to undefined function: numerrors() in g:\www\beta\error_form_tester_temp.php on line 54
I keep getting this error on the non fatal errors template when I use the form tester page provided. I cant see where numErrors() refers to in the script as there doesnt seem to be a function defined for numErrors in the error reporter class. Any help please?
__________________
---- Evolutionary ---- Give me a brush and i'll paint you a painting... Give me photoshop and now we're talking!!! |
|
#8
|
|||
|
|||
|
Great article, but what about the source file?
The source file "errorReporter.zip" mentioned in the article can be found on the author's web site (URL) in the "Community" section.
|
|
#9
|
|||
|
|||
|
Kudos
This is a great article, explaining many of the basic 'error reporting' aspects as the class is built (which is refreshing compared to how many authors write tutorials).
This got me off to a great start for constructing my own class. |
![]() |
| Viewing: Dev Shed Forums > Other > Development Articles > Building A Generic Error Reporting Class In PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|