1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

PHP opening a zip file...

Discussion in 'PHP' started by hightide13, Aug 15, 2005.

  1. #1
    My host doesn't have the lib compiled to be able to use the PHP zip_ functions. Does anyone know a way around this? I have a cron set up to download a zip file daily to the (shared) server. I want to then be able to open the zip file and get out the text file and upload it to MySQL. If anyone has any ideas I would be appreciative! Thanks in advance...
     
    hightide13, Aug 15, 2005 IP
  2. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,333
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #2
    If the server has unzip functionality from the shell (and they allow you to make shell calls), you could do it that way. Check this out.
     
    digitalpoint, Aug 15, 2005 IP
  3. Willy

    Willy Peon

    Messages:
    281
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Willy, Aug 15, 2005 IP
  4. hightide13

    hightide13 Peon

    Messages:
    127
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks Shawn and Willy... I will give them both a look.
     
    hightide13, Aug 15, 2005 IP
  5. script909

    script909 Peon

    Messages:
    33
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    why not use the exec?
     
    script909, Aug 15, 2005 IP
  6. sharpweb

    sharpweb Guest

    Messages:
    246
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    would I be able to have a user upload a zip file that contains multiple jpeg/gif files and somehow save them all to the server (create thumbnails as well, but I know how to do that)?
     
    sharpweb, Aug 16, 2005 IP
  7. Willy

    Willy Peon

    Messages:
    281
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Yes, that's what you can do with the libraries mentioned. For creating thumbnails you either shell out to ImageMagick's "convert" program (if installed) or use the GD or GD2 PHP libraries (if installed).
     
    Willy, Aug 17, 2005 IP
  8. sharpweb

    sharpweb Guest

    Messages:
    246
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    sweet...that will come in handy
     
    sharpweb, Aug 17, 2005 IP