cvs: php4 /pear/Experimental/XML fo2pdf.php

From: Date: Thu, 29 Mar 2001 10:13:50 +0000
Subject: cvs: php4 /pear/Experimental/XML fo2pdf.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4893@lists.php.net to get a copy of this message
chregu Thu Mar 29 02:13:50 2001 EDT Modified files: /php4/pear/Experimental/XML fo2pdf.php Log: MSIE needs a Content-Length: Header to display pdfs correctly. so here it is.. Index: php4/pear/Experimental/XML/fo2pdf.php diff -u php4/pear/Experimental/XML/fo2pdf.php:1.2 php4/pear/Experimental/XML/fo2pdf.php:1.3 --- php4/pear/Experimental/XML/fo2pdf.php:1.2 Tue Mar 27 06:35:21 2001 +++ php4/pear/Experimental/XML/fo2pdf.php Thu Mar 29 02:13:50 2001 @@ -15,7 +15,7 @@ // | Authors: Christian Stocker <chregu@nomad.ch> | // +----------------------------------------------------------------------+ // -// $Id: fo2pdf.php,v 1.2 2001/03/27 14:35:21 chregu Exp $ +// $Id: fo2pdf.php,v 1.3 2001/03/29 10:13:50 chregu Exp $ /** @@ -84,7 +84,7 @@ * print $cache->end("+30"); * * @author Christian Stocker <chregu@nomad.ch> -* @version $Id: fo2pdf.php,v 1.2 2001/03/27 14:35:21 chregu Exp $ +* @version $Id: fo2pdf.php,v 1.3 2001/03/29 10:13:50 chregu Exp $ * @package XML */ @@ -254,7 +254,7 @@ */ function print_pdf($pdf="") { - Header("Content-type: application/pdf"); + Header("Content-type: application/pdf\nContent-Length: ".strlen($pdf)); print $this->return_pdf($pdf); }

« previous php.cvs (#4893) next »