Urban Grafix®
12-31-2002, 12:14 PM
How can I make a PHP script call lets say several HTM scripts inna random order?
would it be something like this
<?php
srand((double)microtime()*1000000);
$randarray = file("rand.htm");
$randone = sizeof($randarray);
$randtwo = rand(0,$randone-1);
$randthing = $randarray[$randtwo];
echo("$randthing");
?>
If any one has a solution on making several HMT's work for this please do tell!
would it be something like this
<?php
srand((double)microtime()*1000000);
$randarray = file("rand.htm");
$randone = sizeof($randarray);
$randtwo = rand(0,$randone-1);
$randthing = $randarray[$randtwo];
echo("$randthing");
?>
If any one has a solution on making several HMT's work for this please do tell!