GeoNames Home | Postal Codes | Download / Webservice | About 

GeoNames Forum
  [Search] Search   [Recent Topics] Recent Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Socket Error  XML
Forum Index -> General
Author Message
mike3reynolds



Joined: 12/11/2010 17:31:39
Messages: 1
Offline

I preformed the following operation:

$socket = fsockopen('ws.geonames.org', 80, $errno, $errstr);

And I got the following error:

Warning: fsockopen() [function.fsockopen]: unable to connect to ws.geonames.org:80 (Unknown error)

What am I doing wrong?
marc



Joined: 08/12/2005 07:39:47
Messages: 4501
Offline

- does the same call work for other domains?
- can you access the domain with other access methods (ping, wget etc). There could be an issue with your dns system, with your firewall or your ip address could be blocked by geonames.org

Marc

[WWW]
 
Forum Index -> General
Go to:   
Powered by JForum 2.1.5 © JForum Team