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 ([EMAIL PROTECTED]).

--zak

----- Original Message -----
From: "Beric Slobodan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to