|  | Posted by Tyrone Slothrop on 02/15/06 17:25 
On Wed, 15 Feb 2006 11:21:07 +0100, Jonas Huckestein<Jonas.Huckestein@web.de> wrote:
 
 >howdy,
 >
 >i am currently writing an install-script for a program which will run on a
 >webserver. the idea is to use only one file and download the latest
 >up-to-date content etc on the fly. because i can't know the target system i
 >would like to download a bunch of files as a tar archive and extract it
 >using as little code as possible.
 >
 >It works if i copy the entire pear archive_tar class into my code, but that
 >clutters up the file and is not necessary because i only want to extract a
 >standard non-zipped tar file.
 >
 >i think the tar-idea is fairly good, only i don't know much about the tar
 >format and how to extract a tar archive with as little code as possible.
 >
 >any help is greatly apreciated (maybe you even find the tar-idea
 >not-so-good?)
 >
 >thanks in advance and
 >greetings, jonas
 
 Just run a system() or exec() call and use the command to extract the
 file as you would from the shell.
  Navigation: [Reply to this message] |