redirect 2 affiliate

Something like this:
PHP:
<?php
$RANDOMNO = rand(0,2);

if $RANDOMNO = "1"{
header ("location:http://site1.com");
}
else
{
header ("location:http://site2.com");
}
?>

That's probably completely wrong, I'm falling asleep here lol.
 
hi gimme4free,

the code does not work, someone else can help me?

greetings.
 
Do you have php installed? You wont be able to do this in straight javascript, and you should ensure your server has PHP support and you have access to it.
 
I do not have php installed.
simply counting the domain purchased goddady not have a hosting.

greetings.
 
Back
Top