RE: [PHP] php
| From: | scott [gts] | Date: | Thu, 02 Aug 2001 18:30:55 +0000 |
| Subject: | RE: [PHP] php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-60984@lists.php.net to get a copy of this message | ||
try using this syntax:
'tar cvzf name.tgz directory/'
here's a breakdown of the syntax
tar
c = create new archive
v = verbose (lists all files added as they are added)
z = filter thru gzip
f = filename of archive
tar by itself does not compress archives. you have
to either specify the "z" or filter the .tar file thru
a compressing program.
if you have Winzip, you're set... winzip understands
tar/gz files and opens them just like they're regular
zip files.
> -----Original Message-----
> From: Eduardo Kokubo [mailto:kokubo@inf.univali.br]
> Sent: Thursday, August 02, 2001 2:35 PM
> To: php-general@lists.php.net
> Cc: Eduardo Kokubo
> Subject: [PHP] php
>
>
> I'm still trying to compress an entire directory on a linux server to be
> decompressed probably in windows client. I'm trying to use exec command
> and tar (compressor for linux), but I don't know how to do it. Can anybody
> pleeeaase help me?
>
>
> I know I should test these, but sending a message is easier. :)
> If a connect the server using ftp_connect and ftp_login, when I try to
> create a directory using mkdir or ftp_mkdir or a file using fopen, will
> they belong to me or to nobody???
>
>