i see a lot of people asking for this script on the boards.
here is the code for ya:
<?
mt_srand((float)microtime()*1000000);
$f=file("gallery.txt");
$u=trim($f[mt_rand(0,sizeof($f)-1)]);
header("Location: $u");
?>
save this file as a php file (no shit
).
the file format for gallery.txt needs to be one url per line with no empty lines, on a flat txt file.
you should upload both files in ascii mode if you are running Windoze.
its the least cpu-resource-consuming version that i could think of at this second
cheers
Lane
[This message has been edited by Lane (edited 11-27-2001).]
here is the code for ya:
<?
mt_srand((float)microtime()*1000000);
$f=file("gallery.txt");
$u=trim($f[mt_rand(0,sizeof($f)-1)]);
header("Location: $u");
?>
save this file as a php file (no shit
).the file format for gallery.txt needs to be one url per line with no empty lines, on a flat txt file.
you should upload both files in ascii mode if you are running Windoze.
its the least cpu-resource-consuming version that i could think of at this second

cheers
Lane
[This message has been edited by Lane (edited 11-27-2001).]


Comment