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
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to