PHP + PDF + IE

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Simone

    #1

    PHP + PDF + IE

    Hi,
    i've a little problem.

    I'm working with FPDF 1.51.

    The ouptput of my php script (a pdf file) in IE is a blank page and click on
    with right
    on 'view html', IE tells me: 'the XML source code is not available',
    but the same script on Mozila and Opera it's OK, open Adobe inside the
    window...

    my code:
    ...
    Header('Content-Type: application/pdf');
    Header('Content-Length: '.strlen($this->buffer));
    Header('Content-disposition: filename; filename=doc.pd f');
    ...

    how can i resolve this problem?
    i think there's a bug in IE (v.6 on XP professional - with IIS/Apache)

    thank you (sorry for my english!)



    Simone



  • R. Rajesh Jeba Anbiah

    #2
    Re: PHP + PDF + IE

    "Simone" <simoneNOSPAMva lenti@libero.it > wrote in message news:<bmpor0$p8 cai$1@ID-209510.news.uni-berlin.de>...[color=blue]
    > Hi,
    > i've a little problem.
    >
    > I'm working with FPDF 1.51.
    >
    > The ouptput of my php script (a pdf file) in IE is a blank page and click on
    > with right
    > on 'view html', IE tells me: 'the XML source code is not available',
    > but the same script on Mozila and Opera it's OK, open Adobe inside the
    > window...
    >
    > my code:
    > ...
    > Header('Content-Type: application/pdf');
    > Header('Content-Length: '.strlen($this->buffer));
    > Header('Content-disposition: filename; filename=doc.pd f');
    > ...
    >
    > how can i resolve this problem?
    > i think there's a bug in IE (v.6 on XP professional - with IIS/Apache)[/color]


    Always manual and the notes are your close friends.

    ---
    "If there is a God, he must be a sadist!"
    http://RajeshAnbiah.itgo.com - The simple site!
    Email: rrjanbiah-at-Y!com

    Comment

    • Simone

      #3
      Re: PHP + PDF + IE


      "R. Rajesh Jeba Anbiah" <ng4rrjanbiah@r ediffmail.com> ha scritto nel
      messaggio news:abc4d8b8.0 310172254.612ff 7ef@posting.goo gle.com...[color=blue]
      > "Simone" <simoneNOSPAMva lenti@libero.it > wrote in message[/color]
      news:<bmpor0$p8 cai$1@ID-209510.news.uni-berlin.de>...[color=blue][color=green]
      > > Hi,
      > > i've a little problem.
      > >
      > > I'm working with FPDF 1.51.
      > >
      > > The ouptput of my php script (a pdf file) in IE is a blank page and[/color][/color]
      click on[color=blue][color=green]
      > > with right
      > > on 'view html', IE tells me: 'the XML source code is not available',
      > > but the same script on Mozila and Opera it's OK, open Adobe inside the
      > > window...
      > >
      > > my code:
      > > ...
      > > Header('Content-Type: application/pdf');
      > > Header('Content-Length: '.strlen($this->buffer));
      > > Header('Content-disposition: filename; filename=doc.pd f');
      > > ...
      > >
      > > how can i resolve this problem?
      > > i think there's a bug in IE (v.6 on XP professional - with IIS/Apache)[/color]
      > http://in.php.net/header
      >
      > Always manual and the notes are your close friends.
      >[/color]


      thnak you!

      Simone


      Comment

      Working...