<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "General use of GTOPO30"]]></title>
		<link>http://forum.geonames.org/gforum/posts/list/4.page</link>
		<description><![CDATA[Latest messages posted in the topic "General use of GTOPO30"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>General use of GTOPO30</title>
				<description><![CDATA[ Hello, and firstly, thanks for the amazingly great web services.

Sorry if this is a stupid question but I'm trying to use the data returned from your elevation finder. 

The problem I have is that I'm using PHP which for some reason isn't getting just a number but some kind of resource id.

I've got something like this:

$val = fopen("http://ws.geonames.org/gtopo30?lat=47.01&lng=10.2", "r");

If anyone knows what I'm doing wrong. Please tell me. I'm going a bit mad not being able to work it out.

Thanks! ]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/132.page#670</guid>
				<link>http://forum.geonames.org/gforum/posts/list/132.page#670</link>
				<pubDate><![CDATA[Fri, 4 Aug 2006 00:01:23]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re:General use of GTOPO30</title>
				<description><![CDATA[ you must fread() what you fopen()]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/132.page#672</guid>
				<link>http://forum.geonames.org/gforum/posts/list/132.page#672</link>
				<pubDate><![CDATA[Fri, 4 Aug 2006 11:54:52]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re:General use of GTOPO30</title>
				<description><![CDATA[ Or: <span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>$data =  file_get_contents&#40;$url, false&#41;;</pre>
		</div>And if you have to deal with Timeouts, Curl is an option:
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>$handle = curl_init&#40;&#41;;
curl_setopt &#40;$handle, CURLOPT_URL, $url&#41;;
curl_setopt &#40;$handle, CURLOPT_CONNECTTIMEOUT, 5&#41;;
curl_setopt &#40;$handle, CURLOPT_RETURNTRANSFER, 1&#41;;
$data= curl_exec&#40;$handle&#41;;
curl_close&#40;$handle&#41;;</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://forum.geonames.org/gforum/posts/list/132.page#673</guid>
				<link>http://forum.geonames.org/gforum/posts/list/132.page#673</link>
				<pubDate><![CDATA[Fri, 4 Aug 2006 13:17:59]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
	</channel>
</rss>