Re: [PHP] getting the line number

2004-06-07 Thread Tim Traver
That is exactly what I needed... Thanks ! Tim. At 12:04 PM 6/7/2004, Adam Bregenzer wrote: On Mon, 2004-06-07 at 14:52, Tim Traver wrote: > 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

RE: [PHP] getting the line number

2004-06-07 Thread Chris W. Parker
Adam Bregenzer on Monday, June 07, 2004 12:04 PM said: > debug_backtrace[1] should get you everything you want and then some. > > [1] http://www.php.net/debug_backtrace that's what i get for using an older version. mwa mwa mwa chris. -- PHP General Mailing L

RE: [PHP] getting the line number

2004-06-07 Thread Chris W. Parker
Tim Traver on Monday, June 07, 2004 11:52 AM said: > Is it possible to get the line number of the parent script of a > subroutine ??? no, not like you want (afaik). i wanted this same thing too but ended up just doing a workaround. it's a little kludgy but it's not

Re: [PHP] getting the line number

2004-06-07 Thread Adam Bregenzer
On Mon, 2004-06-07 at 14:52, Tim Traver wrote: > 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

[PHP] getting the line number

2004-06-07 Thread Tim Traver
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