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 General 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