View Single Post
Old 01-24-2010, 12:13 PM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
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
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote