Re: Function that outputs "at line xxx"
| From: | 1LT John W. Holmes | Date: | Wed, 23 Oct 2002 19:17:00 +0000 |
| Subject: | Re: Function that outputs "at line xxx" | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-22622@lists.php.net to get a copy of this message | ||
__LINE__ and __FILE__ should work.
---John Holmes...
----- Original Message -----
From: "Peter Beckman" <beckman@purplecow.com>
To: <php-db@lists.php.net>
Sent: Wednesday, October 23, 2002 3:00 PM
Subject: [PHP-DB] Function that outputs "at line xxx"
> 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
keeps
> track of what line in which scripts each execution is at?
>
> Thanks,
> Peter
> --------------------------------------------------------------------------
-
> Peter Beckman Systems Engineer, Fairfax Cable Access
Corporation
> beckman@purplecow.com
http://www.purplecow.com/
> --------------------------------------------------------------------------
-
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>