Hi ilmtuelp0815,
Danke für Deine Hilfe, ich habe es soeben wie folgt umgesetzt:
PHP-Code:
//random image from array
$bgimagefile='./cache/bilder/'.$names1[$rand_keys[0]];
if ($bgimagefile <> './cache/bilder/PV.jpg') {
$bg = @ImageCreateFromjpeg ($bgimagefile); /* Versuch, Datei zu öffnen */
if ($bg) { imagecopyresampled($im, $bg, 0, 0, 0, 0, $image_width, $image_height, imagesx($bg), imagesy($bg)); }
goto a;
}
$bg = @ImageCreateFromjpeg ($bgimagefile); /* Versuch, Datei zu öffnen */
if ($bg) { imagecopyresampled($im, $bg, 0, 0, 0, 0, $image_width, $image_height, imagesx($bg), imagesy($bg)); }
das Sprungziel a habe ich ans Ende der index.php gesetzt:
PHP-Code:
a:
// set the HTTP header type to jpeg
header("Content-type: image/jpeg");
Nun wechselt er die Bilder durch!
Langerhannes