Wer kann mir sagen, wie das Script unten auch auf MAC funktioniert:
<?
$path = "./";
$file = urldecode($file);
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"$file\";");
header("Content-Length: ".filesize($path.$file)."; ");
echo readfile($path.$file);
?>
Hierbei soll eine JPG Datei nicht vom Browser geöffnet, sondern downgeloaded werden. Macintosh Browser ignorieren das Script.
<?
$path = "./";
$file = urldecode($file);
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"$file\";");
header("Content-Length: ".filesize($path.$file)."; ");
echo readfile($path.$file);
?>
Hierbei soll eine JPG Datei nicht vom Browser geöffnet, sondern downgeloaded werden. Macintosh Browser ignorieren das Script.