Reply to Re: simple tar-extraction

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация