<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Please add a username to each call"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "Please add a username to each call"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Please add a username to each call</title>
				<description><![CDATA[ Hi,

If I run:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>$requestAddress = = 'http://ws.geonames.org/findNearestIntersection?lat=39.7549303&lng=-75.5685421&username=archiejr';

 $xml_str = file_get_contents&#40;$requestAddress,0&#41;;

 $xml = new SimplexmlElement&#40;$xml_str&#41;;

echo '&lt;br /&gt;&lt;pre&gt;'.print_r&#40;$xml&#41;;echo '&lt;/pre&gt;';</pre>
		</div>

The following is returned:
<blockquote>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 ) ) ) &nbsp;
		</blockquote>

My username has been added to the call. So why the message?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/26526.page#35598</guid>
				<link>http://forum.geonames.org/gforum/posts/list/26526.page#35598</link>
				<pubDate><![CDATA[Wed, 9 Dec 2015 22:43:38]]> GMT</pubDate>
				<author><![CDATA[ archiejr]]></author>
			</item>
			<item>
				<title>Please add a username to each call</title>
				<description><![CDATA[ <p></p>

		<cite>archiejr wrote:</cite><br>
		<blockquote>Hi,

If I run:

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>$requestAddress = = 'http://ws.geonames.org/findNearestIntersection?lat=39.7549303&lng=-75.5685421&username=archiejr';

 $xml_str = file_get_contents&#40;$requestAddress,0&#41;;

 $xml = new SimplexmlElement&#40;$xml_str&#41;;

echo '&lt;br /&gt;&lt;pre&gt;'.print_r&#40;$xml&#41;;echo '&lt;/pre&gt;';</pre>
		</div>

The following is returned:
<blockquote>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 ) ) ) &nbsp;
		</blockquote>

My username has been added to the call. So why the message?&nbsp;
		</blockquote>

I get the same message Archie Jr. I've added my username too. Did you find the solution?]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/26526.page#38414</guid>
				<link>http://forum.geonames.org/gforum/posts/list/26526.page#38414</link>
				<pubDate><![CDATA[Wed, 15 Jun 2016 19:22:33]]> GMT</pubDate>
				<author><![CDATA[ FirstTom]]></author>
			</item>
			<item>
				<title>Re:Please add a username to each call</title>
				<description><![CDATA[ Use this:
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
$link = 'http://api.geonames.org/postalCodeSearch?postalcode='.$pincode.'&maxRows=10&username=xxxx';
$xml = simplexml_load_string&#40;file_get_contents&#40;$link&#41;&#41;;
echo $xml-&gt;code;
</pre>
		</div>
]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/26526.page#38865</guid>
				<link>http://forum.geonames.org/gforum/posts/list/26526.page#38865</link>
				<pubDate><![CDATA[Wed, 15 Jun 2016 19:22:33]]> GMT</pubDate>
				<author><![CDATA[ justsurf]]></author>
			</item>
	</channel>
</rss>