Re: Retrieving the current file & line number

From: Date: Fri, 01 Dec 2000 04:16:18 +0000
Subject: Re: Retrieving the current file & line number
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-28262@lists.php.net to get a copy of this message
like this? <? echo "a<br>\n"; trigger_error("like this?", E_USER_ERROR); echo "b<br>\n"; ?> more info at http://www.php.net/manual/function.trigger-error.php Chris Lee Mediawaveonline.com In article <002101c05bc8$dd1d5dd0$1a00a8c0@bostonweb.com>, mike@plexuspost.com 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.) > > Mike > > -------------------------------------------------- > Michael Bell Senior Systems Administrator MegaPlexus Corporation > mike@megaplexus.com > >

« previous php.general (#28262) next »