Retrieving the current file & line number

From: Date: Fri, 01 Dec 2000 18:59:42 +0000
Subject: Retrieving the current file & line number
Groups: php.general 
Request: Send a blank email to php-general+get-28255@lists.php.net to get a copy of this message
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.) Mike -------------------------------------------------- Michael Bell Senior Systems Administrator MegaPlexus Corporation mike@megaplexus.com

« previous php.general (#28255) next »