How can I print the
$GLOBALS['HTTP_REFERER'];
as a text string so I can search the path to see if it contains part of a domain name?
Something like
$variable = $GLOBALS['HTTP_REFERER'];
if(ereg("yahoo.com", $variable))
{
print "Yes! 'yahoo.com' was found in the referer \$variable";
}
else {
print "Sorry, 'yahoo.com' was not found in the referer \$variable";
}
Whats wrong with the syntax?