jagguy Posted December 23, 2006 Share Posted December 23, 2006 q)Can you upload a zip file of images in php from your HD? Uploading 1 at a time using move-upload is time consuming.q)To enable zip upoads the manula says you need to add download an add-on which points to 3 different files for windows. What do you need exactly to enable zip uploads? Quote Link to comment https://forums.phpfreaks.com/topic/31732-zip-upload/ Share on other sites More sharing options...
trq Posted December 23, 2006 Share Posted December 23, 2006 Uploading a zip file is no different to uploading anything else. What exactly do you want to do? Quote Link to comment https://forums.phpfreaks.com/topic/31732-zip-upload/#findComment-147109 Share on other sites More sharing options...
jagguy Posted December 24, 2006 Author Share Posted December 24, 2006 [quote author=thorpe link=topic=119785.msg490888#msg490888 date=1166917304]Uploading a zip file is no different to uploading anything else. What exactly do you want to do?[/quote]How to code this because how can you use move-upload with many files uzipped?It isn't obvious to do exactly. Quote Link to comment https://forums.phpfreaks.com/topic/31732-zip-upload/#findComment-147192 Share on other sites More sharing options...
Jessica Posted December 24, 2006 Share Posted December 24, 2006 Uploading a zip file means there is just one file. Are you trying to have the user upload many files, then have PHP zip it? Quote Link to comment https://forums.phpfreaks.com/topic/31732-zip-upload/#findComment-147195 Share on other sites More sharing options...
jagguy Posted December 24, 2006 Author Share Posted December 24, 2006 [quote author=jesirose link=topic=119785.msg490975#msg490975 date=1166934826]Uploading a zip file means there is just one file. Are you trying to have the user upload many files, then have PHP zip it?[/quote]I just want to upload a zip file of images. Does uploading such a file do this, instead of using 1 image at a time using move-upload for each one. Quote Link to comment https://forums.phpfreaks.com/topic/31732-zip-upload/#findComment-147240 Share on other sites More sharing options...
Jessica Posted December 24, 2006 Share Posted December 24, 2006 If you upload a zip, that is ONE file. If you upload an image, that is ONE file. It does not matter how many files were in the zip, it is now ONE file. Treat it as such.If you then want to extract the images, you'll probably need some sort of add-on. Quote Link to comment https://forums.phpfreaks.com/topic/31732-zip-upload/#findComment-147246 Share on other sites More sharing options...
jagguy Posted December 24, 2006 Author Share Posted December 24, 2006 I have uncommented the line with zip_dll in extensions in php.ini for php4.4.4.However this still fails to recoginize zip_openproblem is : zip_open() Cannot open zip archive test1.zip$zip = zip_open("test1.zip"); //this exists in same dirif ($zip) {while ($zip_entry = zip_read($zip)) {echo "Name: " . zip_entry_name($zip_entry) . "\n";echo "Actual Filesize: " . zip_entry_filesize($zip_entry) . "\n";echo "Compressed Size: " . zip_entry_compressedsize($zip_entry) . "\n";echo "Compression Method: " . zip_entry_compressionmethod($zip_entry) . "\n";}zip_close($zip);} Quote Link to comment https://forums.phpfreaks.com/topic/31732-zip-upload/#findComment-147405 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.