Got a bit of an annoying problem, under IE the following works perfectly
$query_url = "SELECT id, site_url, name, email_address FROM sindicate_users";
$result_url = mysql_query($query_url) or print ("Could not run query");
$has_found = false;
while ($url_view = mysql_fetch_array($result_url))
{
$headerref = $HTTP_SERVER_VARS['HTTP_REFERER'];
$ref = $url_view[site_url];
echo "$ref";
if (strstr($headerref,$ref))
{
$has_found = true;
echo "TRUE ";
}
else
{
echo "FALSE ";
}
}
It gets dome data on registered sites and matches it against the HTTP_REFERER.
Under NS, it doesnt work.
I thought at first it was the HTTP_REFERER code that didnt work under NS so I did a test page
$headerref1 = $HTTP_SERVER_VARS['HTTP_REFERER'];
echo "$headerref1";
echo "<P>";
$headerref2 = getenv("HTTP_REFERER");
echo "$headerref2";
echo "<P>";
echo "$HTTP_REFERER";
This works under NS and IE
So it seems under NS there is something wrong with
if (strstr($headerref,$ref))
{
$has_found = true;
echo "TRUE ";
}
else
{
echo "FALSE ";
Any ideas?