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
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
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;
>
&
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
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
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
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
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:
8 matches
Mail list logo