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




Henry16@xxxxxxxxxx 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.

.



Relevant Pages

  • RE: Perl / Apache on RH9.0 not working.
    ... Perl / Apache on RH9.0 not working. ... The server encountered an internal error and was unable to complete your ... Premature end of script headers: ... Configuration Phase Participation: Create Directory Config, ...
    (RedHat)
  • Perl / Apache on RH9.0 not working.
    ... The server encountered an internal error and was unable to complete your ... Premature end of script headers: ... This is the first time I"ve used Apache 2.0 so I'm not sure if this is an Apache or a Perl issue. ... Configuration Phase Participation: Create Directory Config, ...
    (RedHat)
  • Re: Ideal Web Development Environment?
    ... only developer in a 1 server department with no budget, few resources, ... sandboxed area of the dev box. ... php, database, third party tools, onto your own computer (which could ... Config Files: There have to be many types of config files. ...
    (comp.lang.php)
  • Re: Offline Files and RDC (Multiple)
    ... Create a computer account on the customers SBS server. ... Well that worked fine on my system - which I'd setup exactly how the clients ... Also its not at all clear whether the message is talkin about the "Client" ... do I remove whatever has got setup to config "multiple remote desktop ...
    (microsoft.public.windows.server.sbs)
  • Re: RAID 1
    ... Stop focusing on the server - it is a straw man. ... As you can see from the config above and its ... As you can also see, immediately before reading post 9, which is your ... >> where you don't move the disk, ...
    (comp.os.linux.networking)