You could simply check $_SERVER['PHP_SELF'], and if it's not 'file1.php', do your redirect.
Good luck, Storm "John Manko" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > 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? > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php