I'm still having a problem with the following code, but I can better
describe the symptoms now.
Code:
<?php
$uri = getenv('REQUEST _URI');
$pieces = explode('/',$uri);
$file = $pieces[count($pieces)-1];
header("Content-type: application/pdf");
header("Content-Disposition: attachment; filename=".$fil e);
readfile('/home/america2/pdfs/'.$file);
?>
The code appears to work perfectly in NN7, but in IE6 it only works when the
user chooses to "Save" the file to the hard drive. If the user chooses to
open the file, Adobe Reader launches, but before a PDF is rendered, the
following error is displayed.
"There was an error opening this document. The file does not exist."
Any suggestions?
describe the symptoms now.
Code:
<?php
$uri = getenv('REQUEST _URI');
$pieces = explode('/',$uri);
$file = $pieces[count($pieces)-1];
header("Content-type: application/pdf");
header("Content-Disposition: attachment; filename=".$fil e);
readfile('/home/america2/pdfs/'.$file);
?>
The code appears to work perfectly in NN7, but in IE6 it only works when the
user chooses to "Save" the file to the hard drive. If the user chooses to
open the file, Adobe Reader launches, but before a PDF is rendered, the
following error is displayed.
"There was an error opening this document. The file does not exist."
Any suggestions?
Comment