Afficher un message
Vieux 08/09/2007, 16h10   #4
Per Jessen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: [PHP] Creating a File in Memory

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
  Réponse avec citation
 
Page generated in 0,04197 seconds with 9 queries