Reply to Re: Fw: Identify which function called another

Your name:

Reply:


Posted by Ben Ramsey on 10/04/47 11:05

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация