Check if php file is an included file?
| From: | John Manko | Date: | Tue, 15 Jul 2003 07:25:49 +0000 |
| Subject: | Check if php file is an included file? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155236@lists.php.net to get a copy of this message | ||
If have file1.php that includes file2.php, is there any way
to check, from file2.php, if it is indeed included. In other words,
I don't want file2.php to display (rather redirect to file1.php) if it's not being requested as a file1.php include file.
did I confuse you?