A simple PhP array redirect script - chooses from any of a number of web sites you specify, and redirects the user to one of them. It has uses well beyond sending people to search engines.
<?php
//the array of links
$linx[0] = "http://www.google.com";
$linx[1] = "http://www.dogpile.com";
$linx[2] = "http://www.lycos.com";
$linx[3] = "http://www.ask.com";
$linx[4] = "http://www.msdewey.com";
//choose a random element from the array
$slinky = array_rand($linx, 1);
$sslinkys = $linx[$slinky];
//redirect to the random page
header("Location: $sslinkys");
?>
<?php
//the array of links
$linx[0] = "http://www.google.com";
$linx[1] = "http://www.dogpile.com";
$linx[2] = "http://www.lycos.com";
$linx[3] = "http://www.ask.com";
$linx[4] = "http://www.msdewey.com";
//choose a random element from the array
$slinky = array_rand($linx, 1);
$sslinkys = $linx[$slinky];
//redirect to the random page
header("Location: $sslinkys");
?>
Comment