Folgender Code sollte als signatur.jpg abgespeichert werden, wenn ich diesen code jedoch als .jpg abspeichere und aufrufe enthält der code fehler, die .htaccess datein funktioniert jedoch bei lycos
Die frage wie bekomme ich das zum laufen und wenn nicht bei lycos, wo dann?
Code:
<?php $dh = opendir("."); while (false !== ($file = readdir($dh))) { if (preg_match('/\.jpg$/i', $file) and $file != "avatar.jpg") { $filelist[] = $file; } } srand((double)microtime()*1000000); $picnum = rand(0, sizeof($filelist) - 1); header("Location: " . $filelist[$picnum]); closedir($dh); ?>
Kommentar