Thanks Chen!

Works like a dream
One question though, how do I know get that to display with the header and everything?
PHP Code:
<?php
error_reporting(7);
require('./global.php');
eval("dooutput(\"".gettemplate('headinclude')."\");");
eval("dooutput(\"".gettemplate('header')."\");");
$iconbits = '';
$iconcount = 1;
while ($iconcount < 103){
$iconcount = str_pad($iconcount, 3, '0', STR_PAD_LEFT);
eval('$iconbits .= "' . gettemplate('icons_bit') . '";');
$iconcount++;
}
dooutput($iconbits);
eval("dooutput(\"".gettemplate('footer')."\");");
?>
I tried that but it turned out like this :
http://www.thesmallvilletorch.com/icons.php