Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine current/calling function name

Status
Not open for further replies.

skiflyer

Programmer
Joined
Sep 24, 2002
Messages
2,213
Location
US
I was wondering, is there a way to determine the current and or calling function?
 
ok I just found the __FUNCTION__ variable, but what about the calling function?
 
The only way I know of is through the installation of the ADP (Advanced PHP Debugger) extension to PHP:
It provides, for example, a function apd_callstack() which shows you the current call stack in its entirety.



Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top