<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Dreamhost Gotcha</title> <atom:link href="http://www.papasoft.com/2006/04/24/dreamhost-gotcha/feed/" rel="self" type="application/rss+xml" /><link>http://www.papasoft.com/2006/04/24/dreamhost-gotcha/</link> <description>Custom WordPress Programming in Miami, FL</description> <lastBuildDate>Mon, 21 Nov 2011 11:04:52 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: papa</title><link>http://www.papasoft.com/2006/04/24/dreamhost-gotcha/comment-page-1/#comment-3</link> <dc:creator>papa</dc:creator> <pubDate>Wed, 17 May 2006 18:36:16 +0000</pubDate> <guid
isPermaLink="false">http://www.papasoft.com/2006/04/24/dreamhost-gotcha/#comment-3</guid> <description>As far as I know there is no solution using Phoogle without modification since it uses file_get_contents (which Dreamhost does not allow).
I was able to use ontok.com and nusoap.php as described at http://www.ontok.com/wiki/index.php/Geocode#PHP.
I modified the addAddress() function in Phoogle as follows (make sure to get nusoap.php and include it in the file).Â  This replaces the same code that used file_get_contents:
&lt;pre&gt;$server = &quot;www.ontok.com&quot;;   // subscribers are emailed a private server with faster response times
$key = &quot;&quot;;  // free users do not need key (limit 10 addresses), subscribers w/key (limit 200  addresses)
$q = array($address);
$soapclient = new soapclient(&quot;http://$server/geocode/soap&quot;);
$result = $soapclient-&gt;call(&quot;geocode&quot;,  array(&#039;key&#039;=&gt; $key, &#039;q&#039;=&gt; $q), &quot;&quot;, &quot;&quot;);
$pointer = count($this-&gt;validPoints);
$this-&gt;validPoints[$pointer][&#039;lat&#039;]= $result[0][&#039;lat&#039;];
$this-&gt;validPoints[$pointer][&#039;long&#039;]= $result[0][&#039;long&#039;];
$this-&gt;validPoints[$pointer][&#039;passedAddress&#039;] = $address;
$this-&gt;validPoints[$pointer][&#039;htmlMessage&#039;] = $htmlMessage;&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>As far as I know there is no solution using Phoogle without modification since it uses file_get_contents (which Dreamhost does not allow).</p><p>I was able to use ontok.com and nusoap.php as described at <a
href="http://www.ontok.com/wiki/index.php/Geocode#PHP" rel="nofollow">http://www.ontok.com/wiki/index.php/Geocode#PHP</a>.</p><p>I modified the addAddress() function in Phoogle as follows (make sure to get nusoap.php and include it in the file).Â  This replaces the same code that used file_get_contents:</p><pre>$server = "www.ontok.com";   // subscribers are emailed a private server with faster response times
$key = "";  // free users do not need key (limit 10 addresses), subscribers w/key (limit 200  addresses)
$q = array($address);
$soapclient = new soapclient("http://$server/geocode/soap");
$result = $soapclient->call("geocode",  array('key'=> $key, 'q'=> $q), "", "");
$pointer = count($this->validPoints);
$this->validPoints[$pointer]['lat']= $result[0]['lat'];
$this->validPoints[$pointer]['long']= $result[0]['long'];
$this->validPoints[$pointer]['passedAddress'] = $address;
$this->validPoints[$pointer]['htmlMessage'] = $htmlMessage;</pre>]]></content:encoded> </item> <item><title>By: Randy</title><link>http://www.papasoft.com/2006/04/24/dreamhost-gotcha/comment-page-1/#comment-2</link> <dc:creator>Randy</dc:creator> <pubDate>Wed, 17 May 2006 17:48:42 +0000</pubDate> <guid
isPermaLink="false">http://www.papasoft.com/2006/04/24/dreamhost-gotcha/#comment-2</guid> <description>Did you ever get a solution?  I&#039;m attempting the same thing on Dreamhost (with WordPress and Phoogle) and was wondering if you solved the problem...</description> <content:encoded><![CDATA[<p>Did you ever get a solution?  I&#8217;m attempting the same thing on Dreamhost (with WordPress and Phoogle) and was wondering if you solved the problem&#8230;</p> ]]></content:encoded> </item> </channel> </rss>
