PHP unter Macintosh

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PHP unter Macintosh

    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.
Working...
X