phpbar.de logo

Mailinglisten-Archive

Re[2]: [php] security Download -->test3

Re[2]: [php] security Download -->test3

Jochen Kaechelin php_(at)_phpcenter.de
Thu, 16 Aug 2001 14:20:10 +0200


> der header sieht mittlerweile so aus...
> <?PHP include("phpSecurePages/secure.php");
> if (file_exists($FilePath.$Filename))
> header("Content-disposition: attachment;filename=$Filename");
> header("Content-type: application/force-download;name=$Filename");
> readfile($FilePath.$Filename); ?>

Schon mal so probiert:

header("Content-Type: application/octet-stream");
header("Content-Disposition: inline; filename=\"".$filename."\"");
readfile($filename);


php::bar PHP Wiki   -   Listenarchive