output a PDF, over header(). causes corruption on the file?

From: Date: Mon, 04 Oct 2004 01:24:33 +0000
Subject: output a PDF, over header(). causes corruption on the file?
Groups: php.general 
Request: Send a blank email to php-general+get-198567@lists.php.net to get a copy of this message
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

« previous php.general (#198567) next »