Re: Error control and the like

From: Date: Thu, 08 Nov 2001 23:30:42 +0000
Subject: Re: Error control and the like
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-73970@lists.php.net to get a copy of this message
On Thursday 08 November 2001 11:25, Sam Masiello wrote: > What database engine are you using? > > Sam Masiello > Software Quality Assurance Engineer > Synacor > (716) 853-1362 X289 > smasiello@synacor.com Hi, I'm using PostgreSQL. GB > Subject: Re: [PHP] Error control and the like > > > On Thursday 08 November 2001 09:49, Sam Masiello wrote: > > > If you are just looking for something that will display all of your > > > warning/error messages to show where fallibilities occur in your code, > > you > > > > can use the error_reporting() function at the top of your script. > > > > No, What you've described is like the perl 'use strict' and > > '-w'. > > > > Let me give you an example of what I'm wanting in pseudo-code. > > > > connect to database > > > > exec query > > > > error in query > > > > catch error > > > > rollback database > > > > It is almost like exceptions. > > > > Thanks, > > > > GB > > > > > Subject: [PHP] Error control and the like > > > > > > > Hi, > > > > > > > > I'm comming from a Perl background and I'm used to using > > > > evail{code;}; > > to > > > > > catch things that would kill the server/program and then do things > > based > > > > on > > > > > > > the error code. > > > > > > > > Can anyone suggest a way to implement the same thing in PHP? I've > > been > > > > > looking at some of the error control functions, but I've not seen any > > > > examples. Any ideas, locations or whatever? > > > > > > > > Thanks for the help. > > > > > > > > GB > > > > -- GB Clark II | Roaming FreeBSD Admin gclarkii@VSServices.COM | General Geek CTHULU for President - Why choose the lesser of two evils?

« previous php.general (#73970) next »