[H-GEN] Pdf-php puzzle

Paul Clarke paul at sitedynamics.com.au
Mon Sep 27 07:16:03 EDT 2004


Hi all,

My site http://www.qfom.com.au/membership/ has the DocumentRoot line of
the Apache conf file pointing to a php file, this works very well (as
you would expect), however, I am using the following lines of php code
to output the file if it is a pdf file:

      header("Content-type: application/pdf");
      header("Content-Disposition: attachment; filename=".$file);
      readfile($path.$file);

Now this may come as a total surprise to you but it works perfectly in
firefox but IE produces an error "There was an error opening this
document. The file does not exist."

Does anyone know the 'trick' to encourage IE to work?

Thanks

Paul

Site Dynamics - Paul Clarke
paul at sitedynamics.com.au
0414 367 747





More information about the General mailing list