Tar Files and send back to browser
| From: | Sascha Braun | Date: | Thu, 26 Sep 2002 10:04:39 +0000 |
| Subject: | Tar Files and send back to browser | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-117687@lists.php.net to get a copy of this message | ||
Hi,
I want to make some people download files the server tar's on demand.
But i don't know really how to send the files back to the browser.
I used the following command for taring the file:
<?
$command = 'tar -c '.$arrResult['name'].'.tgz
.../images/'.$arrResult['image'];
system($command);
?>
This command starts taring, I think, but fills the browser window with the pure code of the tar file
I belive. How can I make it behave different. When I search for the tar on the webserver I
can't find it anywhere.
Please Help
Sascha