Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 17th, 2006, 09:25 AM
Henry16@2cuk.co.uk
Guest
 
Posts: n/a
Default 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.

  #2  
Old October 17th, 2006, 06:35 PM
Daz
Guest
 
Posts: n/a
Default Re: Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known


Henry16@2cuk.co.uk wrote:
Quote:
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.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles