Gyozo,
I tried your errorhandler class and am extremely impressed! Although I
don't have much programming experience, I could tell that this is a
quality class. It shows that you put a lot of thoughts into building it and
that you are an expert php programmer. I really like this class and I
think everyone should either use it, or use something like this in their
scripts.
I am still trying to figure out exactly how your class works, but if you
can work on further developing your class, I would be happy to work on
the documentation. And hopefully, with improved codes and
documentation, more developers will start using it.
At the moment, I have a problem using the class. I don't know if it's
caused by the codes in the class, or I am using it incorrectly. Anyway,
here is the problem:
<?
$error =& new ErrorHandler();
$con=mysql_connect('severname','username','wrongpassword');
?>
errorhandler class works for above script, and shows the denied
access warning due to the wrong password, etc. as expected. But the
errorhandler class fails to work for the following script.
<?
$error =& new ErrorHandler();
class testcon{
function testcon(){
$con=mysql_connect('severname','username','wrongpassword');
}
}
$conobj=new testcon();
?>
The above script times out and returns a fatal error message. For
whatever reason, it seems that errorhandler could not detect the denied
connection warning within an object. What do you think is the problem
here?
My system configuration is: PHP 4.3.10, Apache 2.0.52(win 32), MSIE
6.0, Mysql 4.0.23-nt, Windows NT 5.1 (XP)
Tom
--- In
errorhandler@yahoogroups.com, Papp GyÅ`zÅE
<gyozo.papp@c...> wrote:
> welcome aboard!
> Yes, it is still almost dead apart from starting a rewrite for PHP 4.3.x
> to my latest work. I'll be glad any participation and contribution.
>
>
> laidbak6921 wrote:
> >
> > You mentioned this is almost dead but you also mentioned that
you use
> > this at your job. I take it that the latest version available is
> > production quality? Is this a correct assumption? If so, I would be
> > happy to use it and test it in a production environment and
> > contribute to the project.
> >