Re: [PHP] Stumper: Get Variable Name

2003-07-08 Thread Mike Migurski
>I want to be able to e-mail myself the name of the variable that bombed >out and the line that it was on (as well as the filename) if possible. >Don't really know where to start... looks like this: You can use PHP's predefined constants in an assertion, and debug_backtrace(). http://www.php.net/

[PHP] Stumper: Get Variable Name

2003-07-08 Thread Michael Smith
Alright, I've got an error reporting class with a report() method. I want to be able to e-mail myself the name of the variable that bombed out and the line that it was on (as well as the filename) if possible. Don't really know where to start... looks like this: function report ($error_var) {