PDA

View Full Version : Scripts calling scripts (PHP)



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!

FrostedWeb
12-31-2002, 02:37 PM
Well.. im not 100% sure, ive been learning php too! anyways i would take searches on google. It came up wit some good sites, check there, sorry if this is no help urban