Hi,
If I run:
Code:
$requestAddress = = 'http://ws.geonames.org/findNearestIntersection?lat=39.7549303&lng=-75.5685421&username=archiejr';
$xml_str = file_get_contents($requestAddress,0);
$xml = new SimplexmlElement($xml_str);
echo '<br /><pre>'.print_r($xml);echo '</pre>';
The following is returned:
SimpleXMLElement Object ( [status] => SimpleXMLElement Object ( [@attributes] => Array ( [message] => Please add a username to each call in order for geonames to be able to identify the calling application and count the credits usage. [value] => 10 ) ) )
My username has been added to the call. So why the message?