I am having issues with a rotating php script.
What I am trying to do is redirect traffic to 2 different landing pages and clear the referrer. It MUST clear the meta referrer. The script I am trying to use keeps getting an error. I can't seem to figure it out.
Any help would be greatly apprectiated.
What I am trying to do is redirect traffic to 2 different landing pages and clear the referrer. It MUST clear the meta referrer. The script I am trying to use keeps getting an error. I can't seem to figure it out.
PHP:
<?php
$link[] = "http://www.url1.com";
$link[] = "http://www.url2.com";
$random_number = rand(0,count($link)-1);
$redirectlink = $link[$random_number];
header("Refresh 0; Location: $redirectlink");
exit;
?>
Any help would be greatly apprectiated.