470,855 Members | 1,301 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,855 developers. It's quick & easy.

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.pdf');
...

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

Jul 17 '05 #1
2 5922
"Simone" <si*****************@libero.it> wrote in message news:<bm************@ID-209510.news.uni-berlin.de>...
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.pdf');
...

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

http://in.php.net/header

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
Jul 17 '05 #2

"R. Rajesh Jeba Anbiah" <ng**********@rediffmail.com> ha scritto nel
messaggio news:ab**************************@posting.google.c om...
"Simone" <si*****************@libero.it> wrote in message

news:<bm************@ID-209510.news.uni-berlin.de>...
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.pdf');
...

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

http://in.php.net/header

Always manual and the notes are your close friends.

thnak you!

Simone
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by William C. White | last post: by
2 posts views Thread by Albert Ahtenberg | last post: by
3 posts views Thread by James | last post: by
reply views Thread by Ollivier Robert | last post: by
1 post views Thread by Richard Galli | last post: by
4 posts views Thread by Albert Ahtenberg | last post: by
1 post views Thread by inderjit S Gabrie | last post: by
2 posts views Thread by Jack | last post: by
3 posts views Thread by Sandwick | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.