I need to catch the warnings that php5 throws and put them in a variable. Is there a way that I can do some sort of wildcard catch on warnings and errors?
Thanks!
eelixduppy
10:05 pm on Mar 8, 2007 (gmt 0)
You can use set_error_handler [us3.php.net] to define your own function to handle errors during runtime. I guess you can push them onto an array if you want.
Or if you are only looking for the last error, get_last_error [us3.php.net] would do it for you :)