PHP script installation

Posted on 2003-03-19
Medium Priority
Last Modified: 2006-11-17
I have a php script and associated files in a tarred/gzipped file which I'd like to be able to FTP and unpack to another location through form-interfaced php script. Is it possible to untar/etc. a tar.gz archive using PHP?
Question by:AI_Agent
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Accepted Solution

bobsledbob earned 260 total points
ID: 8169984

There's a PEAR tar management class at:


The other obvious suggestion is to use commandline taring and untaring through PHP's exec() or like function.


Expert Comment

ID: 8170157
As an addition to bobsledbob's exec() remark, use something like this:


shell_exec ('gunzip bla bla bla -xxxxxx ' . $_GET['file']);


or tar -xvf where applicable

Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question