Re: [PHP-WIN] PDFlib on PHP4

2001-08-09 Thread Mike Flynn
At 07:25 PM 8/8/2001 -0400, you wrote: >I'm getting this message ... >with the following code. > > >$len = filesize($filename); >header("Content-type: application/pdf"); ... Well, it's kind of important to know what comes before the ped it ... because if there's any kind of output whatsoever befo

Re: [PHP-WIN] PDFlib on PHP4

2001-08-08 Thread Alain Samoun
Your very first line on your script should be the header: header("Content-Type: application/pdf"); You can also use ob_start(), but it seems to work only with Netscape for me(?) Alain On Wed, Aug 08, 2001 at 07:25:32PM -0400, Adam Oliver wrote: > I'm getting this message > > > Warning: Cannot ad