Page 1 of 1

gzfile problems

Posted: Sun Sep 11, 2005 10:14 am
by Lobster
Hi there,

I'm trying to read various URLs using gzfile(), and one of them is http://www.phpmyadmin.net/ which to nobody's surprise works fine from my browser. However, when using gzfile() I get the following error:

Warning: gzfile(): php_network_getaddresses: getaddrinfo failed: Name or service not known

Incidentally, the native fopen() and similar functions read the URL fine, it's only ZLib functions. I was wondering if anyone knew how I can fix this.

Posted: Sun Sep 11, 2005 10:19 am
by feyd
network hickup, or is this consistent? locally, it worked for me..

Posted: Sun Sep 11, 2005 10:26 am
by Lobster
Ugh. I hate it when people say that and then it works. I had tried it at least twice. Still, it's a little irritating that it acts all erratic like that. I just noticed that my host is running Zlib 1.1.4, while the latest version is 1.2.3. Do you think it's worth pushing them to upgrade?

Posted: Sun Sep 11, 2005 10:28 am
by feyd
can't hurt, now can it? :)