this is one problem i haven't seen some exact solutions. i tried this instead.. header("Content-type: application/pdf"); header("Content-transfer-encoding: binary"); header("Content-Disposition: attachment; filename=list.pdf"); $fp = fopen($WCFPriceList, "rb"); fpassthru($fp); and it did work. but im still waiting for other people's comment. On Mon, 4 Oct 2004 09:24:33 +0800, Louie Miranda <lmiranda@xxxxxxxxx> wrote: > Im trying to output a pdf over a browser so i can hide the url link to > it. but this one causes corruption. > > Try this.. > http://dev.axishift.com/php/getpdf.php > > i got this part.. > "Note: There is a bug in Microsoft Internet Explorer 4.01 that > prevents this from working. There is no workaround. There is also a > bug in Microsoft Internet Explorer 5.5 that interferes with this, > which can be resolved by upgrading to Service Pack 2 or later. " > > but im using netscape, and it still has error. > > here's the basic source for it.. > > <?php > // We'll be outputting a PDF > header('Content-type: application/pdf'); > > // It will be called downloaded.pdf > header('Content-Disposition: attachment; filename="downloaded.pdf"'); > > // The PDF source is in original.pdf > readfile('original.pdf'); > ?> > > what other alternatives can you suggest? i need this asap! please help. > > -- > Louie Miranda > http://www.axishift.com > -- Louie Miranda http://www.axishift.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php