<?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>Sun, 19 May 2013 09:10:46 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Paul Gregg's Blog: PHP algorithms: Determining if an IP is within a specific range.]]></title>
      <guid>http://www.phpdeveloper.org/news/12417</guid>
      <link>http://www.phpdeveloper.org/news/12417</link>
      <description><![CDATA[<p>
<i>Paul Gregg</i> has <a href="http://pgregg.com/blog/2009/04/php-algorithms-determining-if-an-ip-is-within-a-specific-range.html">shared a method</a> he's come up with to determine if a given IP is within a selected range.
</p>
<blockquote>
Unfortunately although people usually understand that an IP address is simply an unsigned 32 bit integer, and is easily determined, usually with $_SERVER['REMOTE_ADDR'], where the real challenge is - is in specifying the range within which they wish to check that IP address.  IP ranges are usually specified in three common ways (in increasing complexity): wildcard, start-end range, classless inter-domain routing.
</blockquote>
<p>
He looks at each method and includes descriptions and code examples as well as a link to <a href="http://pgregg.com/projects/php/ip_in_range/ip_in_range.phps">the source code</a> and a <a href="http://pgregg.com/projects/php/ip_in_range/test.php">live demo</a> of it in action. 
</p>]]></description>
      <pubDate>Tue, 28 Apr 2009 09:25:39 -0500</pubDate>
    </item>
  </channel>
</rss>
