RE: [PHP] Open Download-Box

2002-04-21 Thread Boaz Yahav
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, rb); $contents = fread

[PHP] Open Download-Box

2002-04-18 Thread Martin Thoma
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);

RE: [PHP] Open Download-Box

2002-04-18 Thread James E. Hicks III
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 should

Re: [PHP] Open Download-Box

2002-04-18 Thread Martin Thoma
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