creating zip's with php - high memory usage
| From: | Aaron Axelsen | Date: | Wed, 11 Jun 2008 21:39:58 +0000 |
| Subject: | creating zip's with php - high memory usage | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-275237@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am working on a script that will take a few folders, copy them to a temp location, and then create a zipfile. The problem i'm running into is that some of these zips are upwards of 300mb, and when I use exec to execute the zip function, or use the ZipArchive extension, the php memory usages increases - close to 300mb. Is there any way to get around this spike of memory usage from within php? Or is there a better way alltogether to handle this? I'm open to suggestions!
- --
Aaron Axelsen
lists@frozenpc.net
Great hosting, low prices. Modevia Web Services LLC -- http://www.modevia.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIUEYuuucONIvD0AMRAnhCAJ9BaE1jA0VSmhxs9o7EnCGmOxUbdgCglbCs
iWFyJr5MVW5rBfmAB8MbSDo=
=oBqU
-----END PGP SIGNATURE-----