468,247 Members | 1,323 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,247 developers. It's quick & easy.

Socket opening error

Hi !

I'm opening a socket to a web server on port 80 located on my LAN with
fsockopen. The socket creation fails and PHP returns
"php_network_getaddresses: getaddrinfo failed: Name or service not known"

But, a connection to the same web server through a browser works.

Has anybody some idea about that ?

Thanks.

--
Guillaume Brocker
Jul 17 '05 #1
1 1824
myabe there is no local dns entry where the script runs? can we see an
example of your code?

--
Mike Bradley
http://www.gzentools.com -- free online php tools
"Guillaume Brocker" <gu***************@ircad.u-strasbg.fr> wrote in message
news:40***********************@news.free.fr...
Hi !

I'm opening a socket to a web server on port 80 located on my LAN with
fsockopen. The socket creation fails and PHP returns
"php_network_getaddresses: getaddrinfo failed: Name or service not known"

But, a connection to the same web server through a browser works.

Has anybody some idea about that ?

Thanks.

--
Guillaume Brocker

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Martin | last post: by
6 posts views Thread by Quarco | last post: by
2 posts views Thread by Droopy | last post: by
1 post views Thread by Ismail Demiralp | last post: by
2 posts views Thread by Vitali Gontsharuk | last post: by
3 posts views Thread by Khookie | last post: by
1 post views Thread by ElvisRS | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.