hi,
bei mir geht es ohne probleme...:
... und ist trotzdem ziemlich falsch.
header('Location: '.$img.'');
hiermit löst du einen redirect auf eine andere adresse aus.
da in $img allerdings kein absoluter URL steht, noch dazu fehlerhaft.
error_reporting (E_PARSE);
header("Content-type: image/jpeg");
header("Content-Disposition: attachment; filename=$counter.gif");
header("Content-Length: " . filesize(getcwd() . "$img"));
readfile(getcwd() . "$img");
?>
das alles kommt gar nicht mehr beim client an, da du ja vorher bereits einen redirect gemacht hast.
dieses vorgehen ist unfug.
gruß,
wahsaga
--
"Look, that's why there's rules, understand? So that you _think_ before you break 'em."
"Look, that's why there's rules, understand? So that you _think_ before you break 'em."