Setting title with header ?

From: Date: Tue, 17 Jul 2001 23:22:45 +0000
Subject: Setting title with header ?
Groups: php.general 
Request: Send a blank email to php-general+get-58350@lists.php.net to get a copy of this message
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

« previous php.general (#58350) next »