So I devised a download script which handles downloads when trying to directly access PDF's in their exact location, eg:
http://www.domain.com/files/file.pdf
would now become:
http://www.domain.com/dl.php?file=file
Everything works peachy in every browser but IE, the problem with IE is that apparently it doesn't like being force-fed a download when trying to open a PDF directly off the server - instead users have to save the PDF to disk before they can view it. I have been informed that this isn't acceptable, and we need a workaround, but everything I've read on php.net as far as serving files through the header() function indicates that indeed there is no IE workaround, but I'm hoping some of the good guys here can provide something to let IE users open a PDF directly from the server without having to first download them.
Here's the code I have now with the header functions for sending the requested file to the browser:
$filetype=mime_content_type($root.$endfile);
header('Content-type: application/force-download');
header('Content-Disposition: attachment; filename="'.$endfile.'"');
readfile($root.$endfile);
If there's any help available, please let me know! Thanks!