claud
09.08.2006, 18:18:27
ich habe bisher diesen code um mir bilder anzeigen zu lassen und diese zu zählen :
<?php
$count==1;
$d = dir ("./pics");
while($eintrag = $d->read())
{
$count++;
echo "<img src=pics/".$eintrag." height=20% width=20%><a href=pics/".$eintrag.">".$eintrag."</a><br><br>";
}
$d->close();
echo $count;
?>
am anfang werden allerdings übergeordnete ordner als link angezeigt. also einmal ein "." und einmal ein ".." wie entferne ich das?
<?php
$count==1;
$d = dir ("./pics");
while($eintrag = $d->read())
{
$count++;
echo "<img src=pics/".$eintrag." height=20% width=20%><a href=pics/".$eintrag.">".$eintrag."</a><br><br>";
}
$d->close();
echo $count;
?>
am anfang werden allerdings übergeordnete ordner als link angezeigt. also einmal ein "." und einmal ein ".." wie entferne ich das?