|
Posted by Geoff Berrow on 01/25/07 13:54
Message-ID: <djpgr21fg61gl5sl97c8ag385sibd7gfge@4ax.com> from Geoff
Berrow contained the following:
>
> $files = glob("./gfx/zufall/*");
> shuffle ($files);
>foreach( $files as $key=>$value){
> if ($value=="." || $value==".."){
>unset($files[$key]);
> }
>}
>
> echo "<a href='index.php'><img src='".$file[0]."' height='341'
>width='634' border='0'></a>";
> }
> ?>
Ummm, that should be:-
$files = glob("./gfx/zufall/*");
shuffle ($files);
foreach( $files as $key=>$value){
if ($value=="." || $value==".."){
unset($files[$key]);
}
}
echo "<a href='index.php'><img src='".$files[0]."' border='0'></a>";
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Navigation:
[Reply to this message]
|