To: [EMAIL PROTECTED]
Subject: [PHP] Open Download-Box
Hello! I have a PDF-File, which the user should download (it should not
open in the browser, even if the Adobe-Reader-Pluging is installed). I
use:
$filename = $DOCUMENT_ROOT."/".$QUERY_STRING;
$fd = fopen ($filename, "r
> try
>
> header("Content-type: application/pdf");
>
Thanx, but it doesn't work, too, on IE.
Another effect is, that Netscape now opens it in the broser window instead
of downloding it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
try
header("Content-type: application/pdf");
James
-Original Message-
From: Martin Thoma [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 18, 2002 9:20 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Open Download-Box
Hello! I have a PDF-File, which the user should download (it
Hello! I have a PDF-File, which the user should download (it should not
open in the browser, even if the Adobe-Reader-Pluging is installed). I
use:
$filename = $DOCUMENT_ROOT."/".$QUERY_STRING;
$fd = fopen ($filename, "rb");
$contents = fread ($fd, filesize ($filename));
fclose ($fd);
heade
4 matches
Mail list logo