Mailinglisten-Archive |
Versuch mal den, das sollte auch mit doc, txt und pdf funktionieren:
<?
header("Content-disposition: attachment; filename=$download_file"); //
$download_file: Name der Download-Datei
header("Content-type: application/x-octetstream"); // Unbekannter
MIME-Type!
header("Expires: 0"); // Bin mir nicht sicher ob das nötig ist
readfile("/files/".$download_file);
?>
Gruss
Stefan
> von Tobias
> ja schon , das mit dem Header Location würdee auch funzen , greift aber
> nicht mehr sobald eine doc, txt, pdf -datei o.ä. gedownt werden soll :((((
> hat da noch wer eine idee ???
> cu
> tobias
php::bar PHP Wiki - Listenarchive