Fatal error: Call to undefined function: scandir() in home/djbirtna/public_html/home.php on line 60
Dit is de code:
<?
$dirname = "images/pictures";
$dir = scandir($dirname);
$file = $dir;
$array1 = count($file);
if($dir != false)
{
for ($i=0;$i<$array1;$i++)
{
if ($i != 0 && $i != 1)
{
echo "<a href=\"image.php?image=".$dirname."/".$file[$i]."\"><img id=\"img\" width=\"100\" height=\"75\" src=\"".$dirname."/".$file[$i]."\" alt=\"".$file[$i]."\"></a>";
}
}
}
else
{
echo "Geen Foto's.";
}
?>hoe zorg ik dat die error weggaat en de afbeeldingen getoont worden