Check out debug_backtrace. http://us2.php.net/debug_backtrace There's plenty of helpful info in the array it returns.
On 7/23/07, Rahmin Pavlovic <[EMAIL PROTECTED]> wrote:
Say I'm an include. Say several templates include me into what will become a single web page. How can I tell which template is calling me? _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php
_______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php