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
headers for file download Peter Lauri schrieb: > Best group member, > > This is how I try to push files to download using headers: > > header("Content-type: $file_type"); > header("Content-Disposition: attachment; filename=$filename"); > print $file; > &

[PHP] Re: Setting headers for file download

2006-06-14 Thread Barry
Peter Lauri schrieb: Best group member, This is how I try to push files to download using headers: header("Content-type: $file_type"); header("Content-Disposition: attachment; filename=$filename"); print $file; It works fine in FireFox, but not that good in IE. I have been googled to find th

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

2006-06-14 Thread Peter Lauri
in WHY the server is not sending the correct headers? This is becoming more and more irritating :) Best regards, Peter Lauri -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

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

2006-06-13 Thread Frank Arensmeier
uot; I put a .htaccess file with the line "ErrorDocument 404 /link/to/my/php/ script.php". /frank 14 jun 2006 kl. 02.19 skrev 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-ge

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

[PHP] Re: Setting headers for file download

2006-06-13 Thread Rafael
I use something like this... $file_len = filesize($file_name); $file_ts = filemtime($file_name); header('Content-Type: application/x-octet-stream'); // none known header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Last-Modified: '. gmdate('D, d M Y H:i: