Need help with unzipping uploaded file to a directory on my site

Discussion in 'PHP' started by Arson, Feb 19, 2012.

  1. #1
    I am making a niche specific CMS and am currently working on a module system to make installing new features easy for users.
    I am having a bit of a brain fart here and am hoping someone can help me on the right path.

    I have a form which I use to select a ZIP or RAR file from my computer, and then click the submit button to parse the form data.
    This puts the file in a variable something like:
    $_FILE['inputname']['tmp_name']
    Code (markup):
    Now what I want to do with this uploaded zip/rar file is unzip it into a specific directory, and then delete the archived version of the file completely.


    Can anyone help me out?
     
    Arson, Feb 19, 2012 IP
  2. Ahmed3335

    Ahmed3335 Guest

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I think its a corrupted file...
     
    Ahmed3335, Feb 19, 2012 IP