Mein versuch:
<?php
$handle=opendir ('.');
while (false !== ($file = readdir ($handle))) {
define( "C_WEBSITE_URL", "http://www.meineurl.de" . "/" );
define( "C_IMAGE_DIR", "bilder/" );
$full_path = "";
$count = count( $all_files );
for($i=0; $i<=$count; $i++ )
{
$full_path = C_WEBSITE_URL . C_IMAGE_DIR . $all_files[$i];
echo( "<a href="" . $full_path . ""><img src="" . $full_path . "" alt="Bild" /></a>" );
}
}
closedir($handle);
?>
Aber jetzt kommen nur die "ERSATZBILDER" also kleine Kästchen mit dem Linktext. Und der Link führt ins Bilderverzeichnis direkt, also einfach in das Vereichnis "http://www.meineurl.de/images"
Was habe ich jetz falsch gemacht?