|
Posted by Rob Wilkerson on 11/24/07 14:17
On Nov 24, 5:19 am, petersprc <peters...@gmail.com> wrote:
> Hi,
>
> You can get more info using $err->getUserInfo().
>
> PAER error handling can also be triggered without checking isError:
>
> PHP 5:
>
> function Php5PearErrorHandler($err)
> {
> $ui = $err->getUserInfo();
> $str = $err->getMessage();
> if ($ui != '') {
> $str .= ' (' . $ui . ')';
> }
> throw new PEAR_Exception($str, $err->getCode());
> }
>
> PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'Php5PearErrorHandler');
For what it's worth, it looks like my problem was in the way my MySQL
user was created. I didn't realize that "%" meant any host OTHER THAN
localhost. I thought it just meant "any host" (including localhost).
Thats for the error handling information, though. That may come in
handy.
[Back to original message]
|