RE: [phplib] Accessing call stack or file/line numbers From: Adam Robertson (adam <email protected>)
Date: 04/20/01

http://www.php.net/manual/en/language.constants.php

Adam Robertson
Internet Developer

Random Media
14 South Audley Street
Mayfair
London W1K 1HN
t.+44 (0)20 7923 4298
f.+44 (0)20 7598 8826
www.randommedia.co.uk
 

> -----Original Message-----
> From: Paul Dixon [mailto:paul <email protected>]
> Sent: 20 April 2001 12:39
> To: phplib <email protected>
> Subject: [phplib] Accessing call stack or file/line numbers
>
>
> I'm writing some library code and it would be useful for the
> library to know
> something about its caller, such as the calling function, its
> source file
> name and line number etc.
>
> Does PHP provide access to the call stack to obtain this sort of
> information? I know the error handling functions can do
> something along
> these lines, but I don't want to trigger an error, I just want to log
> information about the call stack.
>
> Failing that, is it possible for PHP script to determine the
> current file
> and line number, like the __FILE__ and __LINE__ macros in C?
> If I can do
> that, then I can have the calling code pass in the necessary info..
>
>
> Many thanks for any pointers!
>
>
> Paul Dixon (paul <email protected>)
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>