OK.
Seeing as noone else has solved this yet. (IE, haven't used the 'FILE_SKIP_EMPTY_LINES | FILE_IGNORE_NEW_LINES' flags, meaning output would be fubar)
PHP Code:
<?
$f = file('/path/to/names/names.txt',FILE_SKIP_EMPTY_LINES | FILE_IGNORE_NEW_LINES);
shuffle($f);
foreach($f as $k => $v) echo '<a href="../models/'.$v.'/" class="tip thumb"><img src="../models/'.$v.'/thumb.jpg" width="88" height="88"><span>'.strtoupper($v[0]).substr($v,1).'</span></a>'."\n";
?>
Renders:
Code:
<a href="../models/silvia/" class="tip thumb"><img src="../models/silvia/thumb.jpg" width="88" height="88"><span>Silvia</span></a>
<a href="../models/billy/" class="tip thumb"><img src="../models/billy/thumb.jpg" width="88" height="88"><span>Billy</span></a>
<a href="../models/jenna/" class="tip thumb"><img src="../models/jenna/thumb.jpg" width="88" height="88"><span>Jenna</span></a>
<a href="../models/adam/" class="tip thumb"><img src="../models/adam/thumb.jpg" width="88" height="88"><span>Adam</span></a>
With names capitalised as requested.