Re: From where was function called?

From: Date: Tue, 23 Apr 2002 06:31:06 +0000
Subject: Re: From where was function called?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94119@lists.php.net to get a copy of this message
You can use the 'magic constants' __FILE__ and __LINE__ For example, if you have an editor that can replace the newline "\n" character, you can replace all "\n" with "\nerror_log(__FILE__ . '[' . __LINE__ . ']');" "Nico Van Der Dussen" <nico@vddi.co.za> wrote in message news:3CC45EB5.6064.19C3129@localhost... > Hi, > > I'm having a real problem: > > In a codeset of more than 5000 lines of code, I have a rogue call to a > function. > > Is there a way I can determine in a function from where the call was > made? (Filename, linenumber etc) > > Thanks > > Nico >

« previous php.general (#94119) next »