note 10931 deleted from ref.pdf by didou

From: Date: Fri, 08 Aug 2003 21:54:27 +0000
Subject: note 10931 deleted from ref.pdf by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-53699@lists.php.net to get a copy of this message
Note Submitter: dominic@execpc.com ---- To get around the IE problem with content-length, you can use the output buffering feature with PHP 4: <?php header( "Content-type: application/pdf" ); // turn output buffering on ob_start(); $pdf = PDF_open(); // create your pdf here. PDF_close($pdf); // get the length of the document $length = ob_get_length(); // output content-length header header("Content-Length: $length"); // send pdf to the browser, flushing and turning off output buffering ob_end_flush(); ?> This works for me in NS 4.7 and IE 5

« previous php.notes (#53699) next »