I'm having a problem with the following:
// Check referring domain
if ( $referers ) {
$referers = explode(" ", $referers);
$found = false;
$temp = explode("/",getenv("HTTP_REFERER"));
$referer = $temp[2];
for ($x=0; $x < count($referers); $x++){
if (ereg ($referers[$x], $referer)) {
$found = true;
}
}
if (!$found && !empty($referer)){
include ("./admin/header.inc");
print "Error: The domain $referer is not an authorized referrer.";
include ("./admin/footer.inc");
exit();
}
}
It works fine on other hosts but I get a
Warning: REG_EMPTY in /........phpcart.php on line 8
when hosted at GlobalGold.co.uk.
The only diference I've found is perl is at 4.2.3 here.
Can anyone help?
MARCUS