make a seperator , lets use ~ for this example
save as randomhtml.txt
<br> some html<div>blah</div
~
<center> some more html <i>test
~
etc
~
etc
then save this as puller.php
<?php
// get html list
$html = file_get_contents("randomhtml.txt");
// split html segments into an array
$exh = explode("~",$html);
// shuffle them
shuffle($exh);
// take 5 of them put them together into a string
$fiverandom = "$exh[0] $exh[1] $exh[2] $exh[3] $exh[4]";
//output the 5 to browser
echo $fiverandom;
?>
__________________
hatisblack at yahoo.com
|