as part of my context handling code for my frames, if a visitor comes from a site and enters mine attempting to goto any file other than my framset page, it will record where they came from in a session variable, then redirect them to my frameset page with appropriate directions to display that file within the frame....then my counter will record where they came from and what page they were trying to view.
in my php pages this works fine, i use:
<?php include('../assets/include/header.php'); ?>
(here is my header.php file)
<?php
session_start();
$_SESSION['referrer']=$_SERVER['HTTP_REFERER'];
?>
but on my html pages it won't record the information properly, $_SESSION['referrer'] will end up being blank when the visitor came from another website.
here is what i tried:
<script language="php" type="text/php" runat="server" src="../assets/include/header.php"></script>
i also tried using an image to include the php file, but that didn't help.
i thought maybe the problem was that header.php was actually running seperatly, rather than being included in the html file's execution....
any words of wisdom?
----------------------------
http://aeonofdarkness.com