Jump to content

Recommended Posts

Hi everyone,

I thinking about writing some code to read a .zip file that contains all the images that are associated with their respective item or product so all the images can remain in the .zip file so all the user would have to do is upload their .zip file or .tar etc. to a folder and that would be all they needed to do, and I was wondering if anyone had any pro's and con's they could share with me or Is it just completely a lame idea?

Link to comment
https://forums.phpfreaks.com/topic/277509-reading-zip-file/
Share on other sites

PHP has some simple zip functions:

 

http://us3.php.net/manual/en/function.zip-open.php

 

 

If you intend to extract an image out of a zip file any time a user requests it, that is probably not the best idea.

 

If you intend to do a one-time extraction after the zip is uploaded, there is nothing wrong with that.

Link to comment
https://forums.phpfreaks.com/topic/277509-reading-zip-file/#findComment-1427600
Share on other sites

Thanks guys, I had a hunch it would add too much load on the server, but  I was hoping it wouldn't be anough for concern. I guess I'll have to write a function to unzip the file once it's uploaded. Which I was hoping to avoid, because I'm just lazy... LOL :happy-04:

Link to comment
https://forums.phpfreaks.com/topic/277509-reading-zip-file/#findComment-1427604
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.