Hi, Wath i want is a simple php file with some different urls in it.
When accesing the php file first open url one.
When accessing the php file again opening link two.
And so on, when all are done start over again.
I have the below code. I have tried it but it does random opens the same urls.
Can anyone help me with the code? I have little to no experience. But if i have the right code i can make it work myself.
<?php
$link[1] = “#”;
$link[2] = “#”;
$link[3] = “#”;
$link[4] = “#”;
$link[5] = “#”;
if(!isset($HTTP_cookie_VARS[‘link’])){ $n=count($link);
$rand=rand(1,$n); setcookie(“link”,$rand,time()+3600);
header(‘location:’.$link[$rand]); }else{ $go=$link[$_COOKIE[‘link’]]; header(‘location:’.$go); }
?>
Kind regards
Melissa