Re: [PHP] opening remote tar.gz files

2003-09-02 Thread John Ryan
it definately always only contains one file
"Curt Zirzow" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> * Thus wrote John Ryan ([EMAIL PROTECTED]):
> > 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"
>
> What are you trying to do with the file? A tar file can contain
> multiple files and have a directory structure.
>
>
> Curt
> --
> "I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] opening remote tar.gz files

2003-09-02 Thread Curt Zirzow
* Thus wrote John Ryan ([EMAIL PROTECTED]):
> 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"

What are you trying to do with the file? A tar file can contain
multiple files and have a directory structure.


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] opening remote tar.gz files

2003-09-02 Thread Curt Zirzow
* Thus wrote Jay Blanchard ([EMAIL PROTECTED]):
> [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");

The only problem with this is that he'll result with a tar file.

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] opening remote tar.gz files

2003-09-02 Thread Dan Anderson
There are a number of possible solutions.  If i remember correctly some
compressed file types need the ability to handle them compiled into PHP.

Try different things.  Sometimes the easiest way to do things is to FTP
into the remote server and ftp into your server to transfer it.

-Dan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] opening remote tar.gz files

2003-09-02 Thread Jay Blanchard
[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!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] opening remote tar.gz files

2003-09-02 Thread John Ryan
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"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php