Re: header() function for displaying an opened PDF document.

From: Scott Fletcher (scott_at_abcoa.com)
Date: 10/13/03


To: php-general@lists.php.net
Date: Mon, 13 Oct 2003 17:42:30 -0400

I can't do readfile() because of lots of bug in IE (Internet Explorer)....

"Kevin Stone" <kevin@helpelf.com> wrote in message
news:20031013212351.6750.qmail@pb1.pair.com...
> Forget the content length and disposition headers. Just set the content
type then output the file..
>
> header("Content-type: application/pdf");
> readfile("junk.pdf");
>
> - Kevin
>
> "Scott Fletcher" <scott@abcoa.com> wrote in message
news:20031013210743.86299.qmail@pb1.pair.com...
> > I seem to be having problem with sending the PDF document to the browser
to
> > be open on screen. I kept getting the error message, it say 'Windows
cannot
> > open this file'. Here's my sample script, so what am I doing wrong?...
> >
> > --snip--
> > header("Content-Type: application/pdf");
> > header("Content-Length: '40736'");
> > header("Content-Disposition: inline; filename='junk.pdf'");
> > --snip--
> >
> > Thanks,
> > Scott F.
>



Relevant Pages

  • I think I have been hijacked.
    ... I am running windows xp on my Compaq Presario and Toshiba laptop, ... An internet connection appears to have been added through a USB. ... R - Registry, StartPage/SearchPage changes ... Fixed crashing bug on certain Win2000 and WinXP systems at O23 listing ...
    (microsoft.public.windowsxp.security_admin)
  • middleman-1.2 and prior off-by-one bug
    ... middleman-1.2 and prior off-by-one bug ... Middleman is a powerful proxy server with many features designed to make browsing ... or act as a portal between an internal network and the Internet. ... The program is affected by an ebp corruption condition in the routine performing the ...
    (Bugtraq)
  • [Full-Disclosure] Comersus Shopping Cart Undisclosed Functionality
    ... "Tommy Ryan" is intimately familiar with this product. ... non-disclosure is dangerous to the internet community. ... So what does Evol do? ... so he's going to release the bug pro-bono. ...
    (Full-Disclosure)
  • XP/W2K/NT BUG
    ... Delusion had found a humdinger of a bug. ... Your firewall protects you from an MS03-026 exploit so long as the hostile ... Server 2003 at ... 135 sitting open and exposed to the Internet. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Template open/save behavior
    ... occur in parallel with the ten design phases. ... Internet Explorer 6.n on Windows XP SP2. ... But it has produced a bug. ... Your statement that "All bugs are flaws but not all flaws are bugs" is the ...
    (microsoft.public.mac.office.word)