Mailinglisten-Archive |
versuch es mal hiermit:
$download = urldecode($download);
$filename = $pfad.$download;
header("Content-Type: application/octet-stream");
header("Content-Disposition: inline; filename=\"".$download."\"");
readfile($filename);
> Immer wieder ...
> ich muß ein pdf archiv zum download anbieten,
> doch alles nutzt nichts, denn ich bekomme immer
> die parent.frameSeite downgeloaded.... (als Name und als Content)
> Ich habe nun schon zig versionen ausprobiert
> und immer wenn auf WAMP klappt geht LAMP nicht mehr ...
>
> if(IsSet($datei)) {
> header("Content-type: application/octet-stream");
> header("Content-Disposition: attachment;filename=$datei");
> header("Pragma: no-cache");
> header("Expires: 0");
> readfile("/services/texte/pdfarchiv/".$datei);
> }
php::bar PHP Wiki - Listenarchive