Setting title with header ?

From: Date: Tue, 17 Jul 2001 23:17:22 +0000
Subject: Setting title with header ?
Groups: php.dev 
Request: Send a blank email to php-dev+get-60191@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.dev (#60191) next »