Another part of the project I'm working on is taking the embedded pdf file out of an xml reply I'm receiving and give the user an option to open/save the pdf file. Well the save option works correctly, but the open option does open Adobe, but then gives the error that the file can't be found. What could be the issue...here's the code I have so far: <?php //Display the previously created PDF file $path = "CreditReports/".$PDFName; //echo $path; $fr = fopen($path, "rb"); $filedata = fread($fr, filesize($path)); fclose($fr); //octet-stream header ( "Content-Length: " . filesize ( $path ) ); header("Content-type: application/octet-stream"); header("Content-disposition: attachment; filename=".basename($path)); readfile($path); ?>