<?php
//locate file for collection
$userfile= file_get_contents("links.txt");
/* this user file (links.txt) is simply a series of URLS, each on one line like so:
www.xxxxxxx.org
www.yyymmmzzz.com
www.someotherurl.com
*/
//explode each line of hte links.txt file directly into an array
$links = explode("\n",$userfile);
//sort($links) or shuffle($links) or whatever this array
sort($links);
//output the array for display.
foreach ($links as $text) {
echo '<a href="http://' . $text .'">' . $text . '</a><br />' . " \n";
}
?>