Re: [PHP-DB] Function that outputs "at line xxx"

2002-10-26 Thread Frank M. Kromann
L PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Sent: Wednesday, October 23, 2002 3:26 PM > Subject: Re: [PHP-DB] Function that outputs "at line xxx" > > > > John, that does work! Thanks. > > > > The problem is this: > > > > Database calls

Re: [PHP-DB] Function that outputs "at line xxx"

2002-10-23 Thread 1LT John W. Holmes
quot;Peter Beckman" <[EMAIL PROTECTED]> To: "1LT John W. Holmes" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, October 23, 2002 3:26 PM Subject: Re: [PHP-DB] Function that outputs "at line xxx" > John, that does work! Thanks. > > The

Re: [PHP-DB] Function that outputs "at line xxx"

2002-10-23 Thread Peter Beckman
__FILE__ should work. > > ---John Holmes... > - Original Message - > From: "Peter Beckman" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, October 23, 2002 3:00 PM > Subject: [PHP-DB] Function that outputs "at line xxx" >

Re: [PHP-DB] Function that outputs "at line xxx"

2002-10-23 Thread 1LT John W. Holmes
__LINE__ and __FILE__ should work. ---John Holmes... - Original Message - From: "Peter Beckman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 23, 2002 3:00 PM Subject: [PHP-DB] Function that outputs "at line xxx" > Hey -- >

[PHP-DB] Function that outputs "at line xxx"

2002-10-23 Thread Peter Beckman
Hey -- I'm writing a database error handler function in PHP, and I want it to tell me at what line in what script the error occurred. Is this possible? I know it happens when PHP hits a warning or a fatal error, but is it possible to do in a live script? Or is there a global variable which keep