Include Files self aware?
| From: | PHP List | Date: | Tue, 30 Apr 2002 23:50:24 +0000 |
| Subject: | Include Files self aware? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-95453@lists.php.net to get a copy of this message | ||
Hi,
Is it possible to detect if a file is being called as an include or require?
ex:
include("file.php") <-- file.php code can "detect" that is has been
called as an include.
Thanks,
Chris