Re: Setting title with header ?
| From: | Zak Greant | Date: | Wed, 18 Jul 2001 02:38:03 +0000 |
| Subject: | Re: Setting title with header ? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-60195@lists.php.net to get a copy of this message | ||
Dear Beric,
This list is used for discussing the development of the PHP language - not
development with and the use of the PHP language.
Try the PHP-General mailing list (php-general-subscribe@lists.php.net).
--zak
----- Original Message -----
From: "Beric Slobodan" <choba@gmx.net>
To: <php-dev@lists.php.net>
Sent: Tuesday, July 17, 2001 5:17 PM
Subject: [PHP-DEV] Setting title with header ?
> I have this code:
>
> $size = filesize("$file");
> $fh = fopen("$file", "r");
> $name = basename($file);
>
> header("Content-Type: application/octet-stream");
> header("Content-Length: $size");
> header("Content-Disposition:$attachment filename=$name");
> header("Content-Transfer-Encoding: binary");
>
> fpassthru($fh);
>
> How can I set title of window ? It works only if I set it (with
> echo"<TITLE>") before fpassthru, but then if file is image or text, it
> displays unformatted data
>
> TIA
> Beric Slobodan
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
> For additional commands, e-mail: php-dev-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>