PHP: can included file know who's including it?

by David Mintz <mambomintz(at)yahoo.com>

 Date:  Tue, 22 Jan 2002 11:58:20 -0800 (PST)
 To:  hwg-languages(at)hwg.org
 In-Reply-To:  rcbowen
  todo: View Thread, Original
In Perl a module can figure out who's 'use'ing it by
consulting $main::0

I'm wondering if there's an equivalent technique in
PHP, that is, some way an included PHP file can access
the name of the file in which it's included.

tia,


David Mintz
Spanish Interpreter
US District Court, Southern District of New York
Web Design & Hosting http://www.dmintzweb.com/
Personal http://www.panix.com/~dmintz/

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA