Re: Check if php file is an included file?
| From: | Jason Wong | Date: | Tue, 15 Jul 2003 07:28:30 +0000 |
| Subject: | Re: Check if php file is an included file? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155237@lists.php.net to get a copy of this message | ||
On Tuesday 15 July 2003 15:25, John Manko wrote:
> 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.
get_included_files()
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
There is nothing more satisfying that having someone take a shot at you, and
miss
-- Murphy's Military Laws n97
*/