getting the line number

From: Date: Mon, 07 Jun 2004 18:52:26 +0000
Subject: getting the line number
Groups: php.general 
Request: Send a blank email to php-general+get-187827@lists.php.net to get a copy of this message
Hi all, Is it possible to get the line number of the parent script of a subroutine ??? ok, let me explain that a little better. I have a script that includes a separate file for functions. In a particular function, if a query gets an error, write out a log file that explains the error. The thing I am trying to determine is from what line the call was made from the parent script to the subroutine. I know that I can get the line number of the current script, but that doesn't tell me where the function was called from... Hope I explained that correctly, Thanks, Tim. SimpleNet's Back ! http://www.simplenet.com/

« previous php.general (#187827) next »