Greetings, I have an archive of PDF documents that are stored in a non web accessible directory. I wrote a small script that will load a PDF document from this directory, dump it to the browser and display it in the Acrobat Plug-in. This works ok. Where the problem lies is in the naming of the PDF file. When viewing the PDF file in the Acrobat Plug-in if I click the plug-in's save to disk icon the filename the PDF file wants to be saved as it test.pdf. The name of my PHP script is test.php. How if at all, can I get the PDF filename to be the actual PDF filename and not test.pdf. If I try manually opening a PDF document directly into the browser it works fine, but doing it via PHP and my script doesn't. Below is what I have written so far after searching the web: <?php $document_directory = "d:/documents"; $document_filename = "the_document.pdf"; $document = $document_directory."/".$document_filename; header("Content-Type: application/pdf"); header("Content-Length: " .filesize($document)); header("Content-Disposition: inline; filename=".$document_filename); readfile($document); ?> I am running Windows XP Pro and using IE6 as my browser. Although I have also tried this without success using Mozilla 1.6 on Windows and Safari and IE5 on OSX. Sorry if a solution to this problem has already been posted elsewhere. If it has please point me in the right direction. Thanx in advance, Gord
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php