Re: Size in Download
| From: | Martin | Date: | Mon, 23 Oct 2000 13:19:16 +0000 |
| Subject: | Re: Size in Download | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-21787@lists.php.net to get a copy of this message | ||
Thanx for your help, but it didn't work (size in the box is still
"unknown").
Header( "Content-Length: 3474385" );
Does it have to be some special format, like "312 KB" ?
Martin
Krznaric Michael wrote:
>
> Try Content-length
>
> Mike
>
> -----Original Message-----
> From: Martin [mailto:martin@thomatechnik.de]
> Sent: Monday, October 23, 2000 4:59 AM
> To: php-general@lists.php.net
> Subject: [PHP] Size in Download
>
> Hiho !
>
> I use:
> Header ("Content-type: $this->mime");
> Header( "Content-Disposition: attachment;
> filename=$filename" );
> Header( "Content-Description: My Generated Data" );
>
> to make the browser download a file. This works fine, but the bowser
> don't know the size of the file, so it can't display the nice "You have
> 12% finished"-blue-bar.
>
> How can I tell the browser the size of the file ?
>
> Martin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net