Re: Fw: Identify which function called another

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lars B. Jensen wrote:
Is there any way, I from one function can identify which other function called it, without parameter passing the name manually ?

Please don't post twice in an hour if you haven't yet received your answer. With that in mind, I have an answer for you. :-)


Use debug_backtrace():
http://www.php.net/debug-backtrace

Harry Fuecks has an excellent post on how to use debug_backtrace() here:
http://www.sitepoint.com/blog-post-view.php?id=157007

--
Ben Ramsey
Zend Certified Engineer
http://benramsey.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux