View Single Post
Old 12-30-2012, 05:53 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,386
Assuming that all image URL's are stored in "images.txt" (one URL per line), the code will be as simple as this:
Code:
$images = file('images.txt');
shuffle($images);
for ($i = 0; $i < min(5, count($images)); $i++) {
    echo '<img src="' . trim($images[$i]) . '" />';
}
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote