Re: Creating a File in Memory

From: Date: Sat, 08 Sep 2007 15:10:43 +0000
Subject: Re: Creating a File in Memory
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-261834@lists.php.net to get a copy of this message
John Schattel wrote: > lacks a file name. So when a program like Google Earth tries to > process the file, it fails. When I bring ndfdViaPipe.kmz into WinZip, > the file has no name but can otherwise be extracted just fine. Once > extracted, Google Earth can process the file. Does anyone know how I > might add the "file name" information to the ndfdViaPipe.kmz? Add some headers before you send the file: header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"blah.zip\""); /Per Jessen, Zürich

« previous php.general (#261834) next »