Re: Compression Functions
- From: Captain Paralytic <paul_lautman@xxxxxxxxx>
- Date: Wed, 30 Apr 2008 06:39:06 -0700 (PDT)
On 30 Apr, 13:28, William Gill <nore...@xxxxxxxxxxx> 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');
?>
.
- Follow-Ups:
- Re: Compression Functions
- From: William Gill
- Re: Compression Functions
- References:
- Compression Functions
- From: William Gill
- Re: Compression Functions
- From: petersprc
- Re: Compression Functions
- From: William Gill
- Compression Functions
- Prev by Date: Re: getting absolute directory path?
- Next by Date: Re: IS a PHP programmer typing <?php ?> most of the time when he is at work?
- Previous by thread: Re: Compression Functions
- Next by thread: Re: Compression Functions
- Index(es):
Relevant Pages
|