Thread: ZIP files

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    3
    Rep Power
    0
    I have to do a script which read a zip file and update with it a database, I need to know if there is a way to uncompress .zip files with PHP.
    Thanks in advance.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2000
    Location
    Indiana
    Posts
    614
    Rep Power
    16
    There aren't any 'unzip' functions that I know of, but you should be able to use a system function to send the data to a 'command prompt' so unzip it.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    3
    Rep Power
    0
    Thanks. OK., I understand...but I still have a problem. :-)
    I don't know which file system function can I use to do that, I mean, how can I execute a command that uncompress the zip file from my script.
    if u could help me I would be very gratefull.

  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    36
    Rep Power
    15
    unzip <filename>

Similar Threads

  1. Can't move or delete it!
    By Hykinsel007 in forum Windows Help
    Replies: 3
    Last Post: June 15th, 2004, 04:41 PM
  2. adding images to zip files with php
    By thindery in forum PHP Development
    Replies: 2
    Last Post: January 25th, 2004, 01:55 PM
  3. zipping up files in a directory
    By thindery in forum PHP Development
    Replies: 3
    Last Post: January 3rd, 2004, 11:44 PM
  4. how to rename files
    By dxgn in forum Perl Programming
    Replies: 1
    Last Post: January 1st, 2004, 02:10 PM
  5. How can I pack servlet files into a jar file?
    By suryahema in forum Java Help
    Replies: 1
    Last Post: December 18th, 2003, 09:32 AM

IMN logo majestic logo threadwatch logo seochat tools logo