@Giz: da habe ich dran gedacht, die if($datei!=.....) Abfrage schliesst den gesamten unteren Codeteil...
PHP-Code:
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
set_time_limit(600);
$i=0;
$verz='bilder/pics/carribean flowers';
$d=dir($verz);
while($datei=$d->read())
{
if($datei!='.'&&$datei!='..'){
$info=GetImageSize($verz.'/'.$datei);
$i++;
if($info[2]==2){
echo $datei.'<br>';
$b=$info[0];
$h=$info[1];
$aB=ImageCreateFromJPEG($verz.'/'.$datei);
$nB=imagecreatetruecolor(150,150);
imagecopyresampled($nB,$aB,0,0,0,0,150,150,$b,$h);
$file='bilder/thumbs/carribean flowers/'.$datei;
$stat=imageJPEG($nB,$file);
};
};
};
$d->close();
?>
ok hab das Time Limit noch erhöht, soweit funktioniert alles tiptop! Frage, lässt sich da noch was drehen mit der Geschwindigkeit? Geht ziemlich lange und am Schluss erhalte ich noch folgende meldung:
Zitat:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@ruefe.local and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
|
Error Log:
Zitat:
[Mon Feb 06 23:53:19 2006] [error] [client 127.0.0.1] Premature end of script headers: php-cgi.exe
|