On Tue, 30 Apr 2002, PHP List wrote:
> 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.Compare $PHP_SELF with __FILE__, maybe? miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

