Re: Compression Functions



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');
?>
.



Relevant Pages

  • Re: Please help me find my problem !!!
    ... > basic grasp of PHP somewhat quickly, already have a completed login ... extract(), as ... Tom Thackrey www.creative-light.com tom creative light com do NOT send email to jamesbutler@willglen.net ...
    (comp.lang.php)
  • Re: Idea for PHP Enhancement: register_globals_manual
    ... > Your comment says the same thing I'm saying: that using extract has the ... now support all of the super globals in PHP. ... of the superglobal array to play with. ...
    (comp.lang.php)
  • Re: [PHP] extract escaped quoted strings
    ... I have a bit of PHP code that needs to extract some quoted strings, ... but i'd love some elegant PCRE solution that thus-far evades ...
    (php.general)
  • Re: ASF - WMA header
    ... >> file-reading using PHP. ... >The duration is written in an unsigned 64-bit integer in the ... position within the first few hundred bytes of the asf. ... If I can find a good way to read the asf header directly to extract ...
    (microsoft.public.windowsmedia.sdk)
  • Why is this script so slow?
    ... mysql database that has about 250 records in it. ... When I use another script to extract the same data and display the ... I can only conclude it is the script. ...
    (alt.php)