Tom Sartain wrote:

> Check out debug_backtrace. http://us2.php.net/debug_backtrace
> There's plenty of helpful info in the array it returns.
> 

Sweet!  Here's what did it:

$_trace=debug_backtrace();
echo $_trace[0]['file'];

Outputs /path/to/calling/file, which is a different file in all cases.

Thank you for helping make this a hackless endeavour.


_______________________________________________
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

Reply via email to