View Single Post
Old 01-05-2007, 10:31 PM  
Bliggo
Registered User
 
Join Date: Jun 2006
Posts: 99
YARGH! Try this

Create a blank php file insert the code below

PHP Code:
<?
$array = file(?yourfilename.php?);
shuffle($array);
for ($i=0; $i<10; $i++) {
echo $array[$i];
}
?>
This will show 10 random lines on your page. Change the ?<10″ to <20 or <25 or however many you want to show?

Upload the php file with this code, and your list file to a folder on your server.

Run it and use the output to create your random list file
Bliggo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote