i cant get script to stop when i need it to.
The script is supposed to check the referrer and if it is 1 of 2 sites its Supposed to Stop and do Nothing else. But for some reason it sill continues to run even if i use exit, exit(), or die Can you help me understand what is going wrong?
<?
$referrer = $_SERVER['HTTP_REFERER'];
// check referrer 1
if (preg_match("http://tucson-appliance-repair.com/*",$referrer)) {
// Do this to referrer match 1
exit();
// check referrer 2
} elseif (preg_match("http://m.tucson-appliance-repair.com/",$referrer)) {
// do this to match 2
exit();
} else {
require_once('mobile_device_detect.php');
mobile_device_detect(true,false,true,true,true,true,true,'http://m.tucson-appliance-repair.com/',false);
};
?>