NYCPHP Meetup

NYPHP.org

[nycphp-talk] Who include()'d me?

Nunez, Eddy enunez at tiaa-cref.org
Thu Jul 31 15:52:41 EDT 2003


 
Quick question:
Anyone know if there is a constant or something that contains the name
of the file that "I" was included into.
 
e.g.
 
includer.php:
<? include("codefile.inc");
    etc etc etc;
?>
 
codefile.inc:
<?
    [declare some functions, resolve world hunger, etc...]
   [but how do I figure out that I was used by "includer.php"?]
?>
 
I know about _FILE_, if I use it, it'll just return who the current file is
...
and no I don't want to pass it as an argument. Looking for something more
elegant.
 
Let me know if I am not making sense. Thanks.
 
-Eddy


**************************************************************
This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law.  If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies.  You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
TIAA-CREF
**************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20030731/6f2f88e7/attachment.html>


More information about the talk mailing list