470,815 Members | 1,294 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

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



Never seen such a situation !

Do you have once faced this problem ?

We use a fsockopen to retrieve a content from a URL [fsockopen ($url,
80, $errno, $errstr, 5);]. The content is dispalid corretly on a page
on one of our servers.
But on an other server (more-or-less same config.) the content is not
displaid !! with the error message ::

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed:
Name or service not known in /home/virtual/site1/fst/var/www/html/..php
on line 46

A config. probem of PHP or Linux server ? Never seen that in the past !

Many thanks for any comment or operating solutions.

Henry.

Oct 17 '06 #1
1 22926
Daz

He*****@2cuk.co.uk wrote:
Never seen such a situation !

Do you have once faced this problem ?

We use a fsockopen to retrieve a content from a URL [fsockopen ($url,
80, $errno, $errstr, 5);]. The content is dispalid corretly on a page
on one of our servers.
But on an other server (more-or-less same config.) the content is not
displaid !! with the error message ::

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed:
Name or service not known in /home/virtual/site1/fst/var/www/html/..php
on line 46

A config. probem of PHP or Linux server ? Never seen that in the past !

Many thanks for any comment or operating solutions.

Henry.
Sounds like it's almost certainly a problem with your config. It looks
like your script is looking in the current script instead of online for
your URL. It might be worth running some diagnostics on that server to
check that the DNS is working correctly, and that you can access
websites by their domain name. If you can't, try accessing it by IP
address (which can be obtained by pinking the domain name).

Hope this gives you somewhere to start.

Daz.

Oct 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by billa1972 | last post: by
4 posts views Thread by edcdave | last post: by
1 post views Thread by mirandacascade | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.