Re: Getting gibberish, sometimes, in PDF output

From: Date: Mon, 21 Oct 2002 17:47:27 +0000
Subject: Re: Getting gibberish, sometimes, in PDF output
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-120774@lists.php.net to get a copy of this message
Save the file and look, if you don't have some php errors showing up in it. What is different between the case when it shows up correctly and when it shows gibberish? Sarah Gray wrote:
hi I'm generating a pdf file and giving users a link to the file (an online certificate). The link is just a regular link with a query string. Sometimes in the browser the pdf file opens correctly, and other times the page spews out gibberish (uncompiled). I am including the header header("Content-type: application/pdf"); in the file and it is on the first line (before includes, etc.). This is the first time I am outputting pdf files and suspect that probably I am missing something simple -- a step, call to a plugin, header, something. Can anyone tell me what that might be? thanks, s.


« previous php.general (#120774) next »