When I was looking for help I stumbled over http://pear.php.net and now I'm stuck 😉
I can see many ways that PEAR repositary can help me in my project. The only "but" here is that I miss example code for many things because my PHP experience of "PEAR-thinking" is not very long. It's a lot easier to understand code compared to plain text.
Take the DB-package for an example. I understand how to use rather quickly, but what about error handling?
I guess that if I have a query like:
$result = DB::getRow($query);
I must always(?) check if the query went wrong:
if (DB::isError($db)) { die ($db->getMessage());}
If the method went wrong it returns a PEAR_error in some way...
The class PEAR_Error is a way to handle errors but how do I use it? And which methods does it support (can't find getMessage in the doc)
Does anybody know more here?