Re: [PHP] ZipArchive, but without files

2010-09-23 Thread Jonathan Mills
and what if you serialize your String? You can save Objects in it... True, but the defined format for the item in the database is a zip file (it gets exported later to another, external, application which eats zip files) :-( -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] ZipArchive, but without files

2010-09-23 Thread Ashley Sheridan
On Thu, 2010-09-23 at 11:40 +0100, Jonathan Mills wrote: and what if you serialize your String? You can save Objects in it... True, but the defined format for the item in the database is a zip file (it gets exported later to another, external, application which eats zip files) :-( What

[PHP] ZipArchive, but without files

2010-09-22 Thread Jonathan Mills
Is it possible to create a ZipArchive to a non-file storage, eg string? I want to create a small zip of some data, and then load it into a database. I don't need the intermediate file. I tried various filters, and I can READ a zip archive with the data:// wrapper, but haven't found any way of

Re: [PHP] ZipArchive, but without files

2010-09-22 Thread Viacheslav Chumushuk
Hello. As I understand you in a right way you need next function http://ua.php.net/manual/en/function.gzcompress.php On Wed, Sep 22, 2010 at 10:16:30AM +0100, Jonathan Mills jonathan.n.mi...@gmail.com wrote: Is it possible to create a ZipArchive to a non-file storage, eg string? I want to

Re: [PHP] ZipArchive, but without files

2010-09-22 Thread Jonathan Mills
On 22/09/2010 12:11, Viacheslav Chumushuk wrote: Hello. As I understand you in a right way you need next function http://ua.php.net/manual/en/function.gzcompress.php Thanks for the suggestion Viacheslav , but I'd trying to the create the complete zipfile structure, gzcompress() just

Re: [PHP] ZipArchive, but without files

2010-09-22 Thread Carlos Medina
Am 22.09.2010 17:32, schrieb Jonathan Mills: On 22/09/2010 12:11, Viacheslav Chumushuk wrote: Hello. As I understand you in a right way you need next function http://ua.php.net/manual/en/function.gzcompress.php Thanks for the suggestion Viacheslav , but I'd trying to the create the complete