Re: ZipArchive, but without files
| From: | Viacheslav Chumushuk | Date: | Wed, 22 Sep 2010 11:11:33 +0000 |
| Subject: | Re: ZipArchive, but without files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-308251@lists.php.net to get a copy of this message | ||
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.Mills@gmail.com> wrote:
> 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 creating the data
> other than in a file yet.
>
> Jonathan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Best regards, Viacheslav Chumushuk
email/jabber: voice@root.ua
Ukraine, Khmelnitsky
- - - - -
Please, use plain text message format contacting me, and
don't use proprietary formats for attachments (such as DOC, XLS)
use PDF, TXT, ODT, HTML instead. Thanks.