RE: [PHP] opening remote tar.gz files
| From: | Jay Blanchard | Date: | Tue, 02 Sep 2003 19:11:06 +0000 |
| Subject: | RE: [PHP] opening remote tar.gz files | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-161469@lists.php.net to get a copy of this message | ||
[snip]
is it possible with PHP to download and open a remote tar.gz file?? I
read
in the manual that it is, but it never seems to work for me.
I tried opening the file with fopen
fopen("zlib://http://www.site.com/update.tar.gz",
"r");
but it didnt work
Then I tried using the zlib functions but they just returned garbage. I
think it might have something to do with it not being able to handle
".tar"
[/snip]
See http://www.php.net/zlib and try $compFile =
gzopen("foo.tar.gz"),
"r");
HTH!