gzfile problems

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Lobster
Forum Newbie
Posts: 4
Joined: Sat Sep 10, 2005 3:55 pm

gzfile problems

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

network hickup, or is this consistent? locally, it worked for me..
Lobster
Forum Newbie
Posts: 4
Joined: Sat Sep 10, 2005 3:55 pm

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

can't hurt, now can it? :)
Post Reply