NYCPHP Meetup

NYPHP.org

[nycphp-talk] Tricks with __FILE__?

Adam Maccabee Trachtenberg adam at trachtenberg.com
Fri Jul 16 12:57:04 EDT 2004


On Fri, 16 Jul 2004, Chris Bielanski wrote:

> Can anyone suggest how I might be able to gather the name of the *original*
> script that's calling include()? Is there an element on $_SERVER[] that can
> do the trick?

debug_backtrace()

-adam

-- 
adam at trachtenberg.com
author of o'reilly's "upgrading to php 5" and "php cookbook"
avoid the holiday rush, buy your copies today!



More information about the talk mailing list