Re: [PHP] Re: Setting headers for file download [medium]

2006-06-14 Thread Rafael
Barry wrote: Peter Lauri schrieb: Ok, my knowledge about HTTP is not the best. But how can you send three different content-type headers? :) There are not so different at all. Just giving the browser the job to download that thing. Every browser likes to interpret every content-type like he w

Re: [PHP] Re: Setting headers for file download

2006-06-14 Thread Barry
Peter Lauri schrieb: That did it, thanks... Ok, my knowledge about HTTP is not the best. But how can you send three different content-type headers? :) There are not so different at all. Just giving the browser the job to download that thing. Every browser likes to interpret every content-typ

RE: [PHP] Re: Setting headers for file download

2006-06-14 Thread Peter Lauri
That did it, thanks... Ok, my knowledge about HTTP is not the best. But how can you send three different content-type headers? :) -Original Message- From: Barry [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 8:36 PM To: php-general@lists.php.net Subject: [PHP] Re: Setting head

RE: [PHP] Re: Setting headers for file download

2006-06-14 Thread Peter Lauri
I got it working on one server, but not the real server. I just took your code and voila it was working (with some modifications). It works on: Localhost Windows Plesk Server running Plesk 7.5 Not working on: Plesk Server running Plesk 7.0 Then the questions is: Where should I start to search in

Re: [PHP] Re: Setting headers for file download

2006-06-13 Thread Frank Arensmeier
I was working on a script that was supposed to generate PDF files on the fly and ran into the same problem as you described. MS IE has always been and will always be (?) a P.I.T.A. when it comes to following standards (I am not really sure if the header application/x- octet-steam is a standr

RE: [PHP] Re: Setting headers for file download

2006-06-13 Thread Peter Lauri
I will try that after golf... -Original Message- From: Rafael [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 6:28 AM To: php-general@lists.php.net Subject: [PHP] Re: Setting headers for file download I use something like this... $file_len = filesize($file_name); $