note 77337 added to ref.zip
| From: | TheSeoDude at osu1 dot php dot net | Date: | Fri, 24 Aug 2007 18:10:17 +0000 |
| Subject: | note 77337 added to ref.zip | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129765@lists.php.net to get a copy of this message | ||
I wrote a simple function to export a zip file to an array. I tested it and works great to up to 1MB
archives. (Didn't need it for larger files.)
I use it to upload files to my server in a zip and have it directly extracted along with directory
structure.
This function will attempt to use unzip functions in php otherwise will use PCLzip. Instructions and
the functions are explained on http://www.tellinya.com/art2/20/unzip-in-php
. The code is quite short but effective. Test it as advised on site to unserstand the format it
extracts.
And any bug please mention in the comment form as I rely on this code and I'll address them
ASAP. This will satisfy the needs of 95% of those that do unzips on the site and will help those
with unzip functions not enabled as PCPLzip will handle it as well.
Cheers and n-joy.
----
Server IP: 69.147.83.197
Probable Submitter: 81.196.77.231
----
Manual Page -- http://www.php.net/manual/en/ref.zip.php
Edit -- https://master.php.net/note/edit/77337
Del: integrated -- https://master.php.net/note/delete/77337/integrated
Del: useless -- https://master.php.net/note/delete/77337/useless
Del: bad code -- https://master.php.net/note/delete/77337/bad+code
Del: spam -- https://master.php.net/note/delete/77337/spam
Del: non-english -- https://master.php.net/note/delete/77337/non-english
Del: in docs -- https://master.php.net/note/delete/77337/in+docs
Del: other reasons-- https://master.php.net/note/delete/77337
Reject -- https://master.php.net/note/reject/77337
Search -- https://master.php.net/manage/user-notes.php