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?