SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Addict
    Join Date
    May 2002
    Posts
    349
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Zip Function question

    Hi,

    I'm looking at setting up a photo gallery online where a user will upload photos via "zip".

    I've checked out php.net and figure this is all I need as far as "theory":

    PHP Code:
    [font=Courier New]$zip zip_open"myfile.zip" )
     or die(
    "Couldn't open zipfile.");
    while(
    $entry zip_read$zip ))
    {
     
    //  do stuff with zipfile entries...
    }
    zip_close$zip );[/font]
    [
    font=Courier New][/font


    Basically, I just want a way for someone to upload a large number of photos via zip. Once on the server, I'll have this file unzipped and I'll create a set of thumbnails and regular size images for viewing. I'll do this during the While Loop.

    I just want to know if I'm on the right track or if I'm missing something. All comments and suggestions are welcome.

    Thanks.

  2. #2
    ********* wombat firepages's Avatar
    Join Date
    Jul 2000
    Location
    Perth Australia
    Posts
    1,717
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    your only issue is whether the zip extension is enabled on your host , its not really a common one.

    There are some zip classes around that dont require the extension though, perhaps google may help there.

    you can use exec() as well if zip is on your system.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •