• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 211
  • Last Modified:

PHP script installation

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?
0
AI_Agent
Asked:
AI_Agent
1 Solution
 
bobsledbobCommented:

There's a PEAR tar management class at:

http://pear.php.net/package-info.php?pacid=24

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

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

<?php

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

?>

or tar -xvf where applicable
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now