i want to set up a php rotator redirect... i tried modifying a code i found on here but it always keeps redirecting to Yah00 and never G00gle or Ask.
any clues from PHP coders?
any clues from PHP coders?
Code:
<?php
//Add as many links you want
$mylink[] = header( 'Location: http://ask.com' ) ;
$mylink[] = header( 'Location: http://google.com' ) ;
$mylink[] = header( 'Location: http://yahoo.com' ) ;
// this will display the random link
echo $mylink[array_rand($mylink)];
?>