Re: Retrieving the current file & line number

From: Date: Fri, 01 Dec 2000 19:22:58 +0000
Subject: Re: Retrieving the current file & line number
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28266@lists.php.net to get a copy of this message
On Fri, Dec 01, 2000 at 01:59:42PM -0500, Michael Bell wrote: > I'm looking into generating error messages in my classes to store various > information when an error happens. Is it possible to dump the current > filename (this file may have been included from other documents) and the > line number on which it happened. Hard coding the line numbers is not a > solution as the code is constantly changing in length. Please keep in mind > that they are caught errors (i.e.: PHP did not generate them.) What about http://php.net/manual/language.constants.php ? -Egon -- http://www.linuxtag.de/ http://php.net/books.php http://www.concert-band.de/

« previous php.general (#28266) next »