Re: Compression Functions
On 30 Apr, 13:28, William Gill <nore...@example.com> wrote:
> petersprc wrote:
> > Hi you can exec this command
>
> > tar xzvf logs.tar.gz access_log
>
> > where access_log is the file you want to extract.
>
> Thanks, but I don't remote access to the shell. I was hoping I could
> use the PHP compression functions to split the files, extract to a
> variable, and scan the data.
>
> I have been playing with gzfile() but what I'm doing seems a little
> crude.
<?php
`tar xzvf logs.tar.gz access_log`;
?>
or
<?php
exec('tar xzvf logs.tar.gz access_log');
?>
|