Reply to Re: PEAR MDB2 Unknown Error

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация