Hello everyone,
I'm trying to create a "run of the mill" PHP script that will allow users to download a PDF from some website. The script works great in Firefox but not in IE7. Please have a look at the script and tell me what I'm doing wrong...
it's attached below. I've tried a few of the scripts provided at php.net but those result in either IE7 or Firefox working and the other not...
Thanks,
Thyme
EDIT:
The script is:
################################################## ########
<?php
session_start();
$document = $_GET['show'];
$client = <some client ID>;
// We'll be outputting a PDF
header('Content-type: application/pdf');
// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="'.$document.'" ');
header('Content-Description: pdf');
// The PDF source is in original.pdf
readfile('../../../download/'.$client.'/'.$document.'');
?>
################################################## ########
It seems as thought IE is not picking up the readfile() path as well as Firefox does...
Bookmarks