Low memory, PHP7.4 setups #287
-
I am trying to use this in a WordPress plugin where there are low end servers using PHP 7.4. I am using the ZipStream 2.2.6 to work with PHP 7.4. Is there a way to use this class to use less memory? I have instances where we are adding say 50 x 4MB images and it will run out of PHP memory and the zip file fails. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Are you streaming the files from storage to the library (and possibly to the http response)? |
Beta Was this translation helpful? Give feedback.
-
I have two separate scenarios where I am building the zip file from files on the server or being pulled from S3. Right now I’m just testing local files as my current implementation pulls them from S3 to local first and then builds the zip, but ideally would like a solution that pulls directly from S3 eventually. |
Beta Was this translation helpful? Give feedback.
Look at addFileFromStream().