Date: 04/20/01
- Next message: Adam Robertson: "RE: [phplib] Accessing call stack or file/line numbers"
- Previous message: Carlos Romero Mas: "RE: [phplib] Problem?? implode - Variable"
- In reply to: Bas van Schooten: "[phplib] PHPLib installing"
- Next in thread: Adam Robertson: "RE: [phplib] Accessing call stack or file/line numbers"
- Reply: Adam Robertson: "RE: [phplib] Accessing call stack or file/line numbers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Adam Robertson: "RE: [phplib] Accessing call stack or file/line numbers"
- Previous message: Carlos Romero Mas: "RE: [phplib] Problem?? implode - Variable"
- In reply to: Bas van Schooten: "[phplib] PHPLib installing"
- Next in thread: Adam Robertson: "RE: [phplib] Accessing call stack or file/line numbers"
- Reply: Adam Robertson: "RE: [phplib] Accessing call stack or file/line numbers"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

