Discussion: Compression Functions
Afficher un message
Vieux 30/04/2008, 15h39   #4
Captain Paralytic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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');
?>
  Réponse avec citation
 
Page generated in 0,12687 seconds with 9 queries