Re: Getting current line from source code

From: Date: Mon, 31 Jul 2000 20:33:16 +0000
Subject: Re: Getting current line from source code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9269@lists.php.net to get a copy of this message
> > > die(sprintf("file: %s line: %s",__FILE__,__LINE__)); > > > > not really what i thought of as i wanted to use it to handle errors that occur > > within an object method. > > > > tks anyway! > > This works fine inside a class method. it does work, but i know where my error-handling method resides, i'd like to know where the call came from, and i don't feel like passing file & line to every method call -- Grüße aus Weeze Jens Kisters rosomm et partner Holtumsweg 12 47652 Weeze Telefon: 0 28 37 - 96 23 73 http://www.rosomm-partner.de

« previous php.general (#9269) next »