Re: Creating a File in Memory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux