Daniel -

When I use the following code, I am not asked if I want to Save the file
or Open it.  Instead, the contents of the file are displayed in the
browser.  I am sure that I have missed something simple!!

Todd

<?php
  $len = filesize("test.pdf");
  header("Content-type: application/pdf");
  header("Content-Length: $len");
  header("Content-Disposition: attachment; filename=test.pdf");
  readfile("test.pdf");
?>


--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to