<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Wed, 23 May 2012 05:43:42 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Asvin Balloo's Blog: Geolocate your visitors with PHP (part 2)]]></title>
      <guid>http://www.phpdeveloper.org/news/10717</guid>
      <link>http://www.phpdeveloper.org/news/10717</link>
      <description><![CDATA[<p>
<i>Asvin Balloo</i> has posted the <a href="http://htmlblog.net/geolocate-your-visitors-with-php-part-2/">second part</a> of his geolocate with PHP tutorial series - using the mapping information gathered from the <a href="http://www.phpdeveloper.org/news/10643">previous article</a> to plot them on a map.
</p>
<blockquote>
<a href="http://htmlblog.net/geolocate-your-visitors-with-php-part-1/">In the first part</a> of this series I showed how you could get the country of a visitor via his IP address. Now with this precious information, I'll show you how to map the visitor visually on the world map using <a href="http://code.google.com/apis/maps/documentation/">Google Maps</a>.
</blockquote>
<p>
The full code is provided - the PHP to pull the latitude/longitude information from the GeoIP library and the Javascript to get the Google Map to plot the point. You can check out the <a href="http://htmlblog.net/demo/myip/">live demo</a> for an example or just <a href="http://htmlblog.net/demo/myip/myip.zip">grab the source</a> and try it out for yourself.
</p>]]></description>
      <pubDate>Wed, 30 Jul 2008 12:08:10 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Asvin Balloo's Blog: Geolocate your visitors with PHP (part 1)]]></title>
      <guid>http://www.phpdeveloper.org/news/10643</guid>
      <link>http://www.phpdeveloper.org/news/10643</link>
      <description><![CDATA[<p>
On his blog today <i>Asvin Balloo</i> has posted <a href="http://htmlblog.net/geolocate-your-visitors-with-php-part-1/">the first part</a> of his look at his method for geolocating the visitors to your website using the PEAR GeoIP package and the MaxMind GeoLite Country information.
</p>
<p>
In this first part, he just makes sure that you have what you need installed before really getting started. Brief installation instructions are provided and example code is included to make sure things are up and working correctly (a lookup for whatever IP you're coming from).
</p>
<p>
It uses the <a href="http://pear.php.net/manual/en/package.networking.net-geoip.lookupcountryname.php">lookupCountryName</a> method to translate the information based on the MaxMind data.
</p>]]></description>
      <pubDate>Mon, 21 Jul 2008 08:49:29 -0500</pubDate>
    </item>
  </channel>
</rss>

