I mean, I use advertising on my website. but I have 2 different providers for each advertisement, so what I want is that when a user clicks on the barner, it takes it to a PHP file that contains the 2 destinations, if the user clicks the first time, it takes it to the First, if you do it for a second time, take it to the second time, if you do it for a third time, then start again with the first time. let it be a cycle. or failing that, that is for seconds, that is to say that the PHP, has a sequence that every so many seconds, changes between 2 different destinations. I have this until now:
if(){
header ('Location: http://www.misitio1.com');
}else{
header ('Location: http://www.misitio2.com');
}