<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1020353" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1020353</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/getting-ip-address#comment-1125741</link>
    <description> &lt;p&gt;If you check in the php.net manual notes at the bottom of each page.  You might find a prewritten locator script.  I can remember seeing one there but cant find it at the moment.&lt;br /&gt;
-dk&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Feb 2003 23:33:26 +0000</pubDate>
 <dc:creator>dk01</dc:creator>
 <guid isPermaLink="false">comment 1125741 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/getting-ip-address#comment-1125720</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &lt;em&gt;Originally posted by TonyMontana &lt;/em&gt;&lt;br /&gt;
&lt;strong&gt;Well, they got the city wrong, but fairly close. Total accuracy would be better. And I&#039;m looking for the script to be PHP/SQL.&lt;br /&gt;
&lt;/strong&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt; I expect total acuracy is presently impossible for reasons suggested above... any location script that hones in on the IP will be finding (at best) the location of your ISP. That&#039;s a good thing, privacy wise.&lt;/p&gt;
&lt;p&gt;I suspect a bare bones locator script would work like this....&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;$mgrHOST &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;gethostbyaddr&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$_SERVER&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;REMOTE_ADDR&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;]);&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// make assesment based upon country code&lt;br /&gt;// or...&lt;br /&gt;// perform whois, look at location&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt; No whois built into PHP (to my knowlege) so you&#039;d have to launch a whois application to get that info.&lt;/p&gt;
 </description>
     <pubDate>Wed, 19 Feb 2003 17:55:33 +0000</pubDate>
 <dc:creator>samsm</dc:creator>
 <guid isPermaLink="false">comment 1125720 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/getting-ip-address#comment-1124866</link>
    <description> &lt;p&gt;Well, they got the city wrong, but fairly close. Total accuracy would be better. And I&#039;m looking for the script to be PHP/SQL.&lt;/p&gt;
&lt;p&gt;TonyMontana&lt;/p&gt;
 </description>
     <pubDate>Wed, 05 Feb 2003 03:03:13 +0000</pubDate>
 <dc:creator>TonyMontana</dc:creator>
 <guid isPermaLink="false">comment 1124866 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/getting-ip-address#comment-1124861</link>
    <description> &lt;p&gt;I believe they give the city where your ISP is located.&lt;/p&gt;
 </description>
     <pubDate>Wed, 05 Feb 2003 01:19:24 +0000</pubDate>
 <dc:creator>necrotic</dc:creator>
 <guid isPermaLink="false">comment 1124861 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/getting-ip-address#comment-1124858</link>
    <description> &lt;p&gt;They got country correct and the state. But I didn&#039;t know there was a town in NJ named madison.&lt;/p&gt;
 </description>
     <pubDate>Tue, 04 Feb 2003 22:31:33 +0000</pubDate>
 <dc:creator>Era</dc:creator>
 <guid isPermaLink="false">comment 1124858 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/getting-ip-address#comment-1124856</link>
    <description> &lt;p&gt;Well, they nailed me righ to the city.&lt;/p&gt;
 </description>
     <pubDate>Tue, 04 Feb 2003 22:26:28 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1124856 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/getting-ip-address#comment-1124851</link>
    <description> &lt;p&gt;HA! I don&#039;t live in Suwanne! They got the city wrong &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/tongue.png&quot; title=&quot;Sticking out tongue&quot; alt=&quot;Sticking out tongue&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 04 Feb 2003 21:53:28 +0000</pubDate>
 <dc:creator>necrotic</dc:creator>
 <guid isPermaLink="false">comment 1124851 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/getting-ip-address#comment-1124816</link>
    <description> &lt;p&gt;You looking for something spookey like this? &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://snoop.anonymizer.com/cgi-bin/get_geography.cgi&quot; class=&quot;bb-url&quot;&gt;http://snoop.anonymizer.com/cgi-bin/get_geography.cgi&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 04 Feb 2003 11:22:31 +0000</pubDate>
 <dc:creator>Wil</dc:creator>
 <guid isPermaLink="false">comment 1124816 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/getting-ip-address#comment-1124797</link>
    <description> &lt;p&gt;Yea, that helped somewhat, although I&#039;m now storing user IP as mediumtext as opposed to int(255).&lt;/p&gt;
&lt;p&gt;  I&#039;m looking to grab the geographical location of the user, and their hostname, any scripts out there to do this?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;TonyMontana&lt;/p&gt;
 </description>
     <pubDate>Tue, 04 Feb 2003 02:01:36 +0000</pubDate>
 <dc:creator>TonyMontana</dc:creator>
 <guid isPermaLink="false">comment 1124797 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/getting-ip-address#comment-1124522</link>
    <description> &lt;p&gt;There&#039;s an IP logging script on &lt;a href=&quot;http://www.phplounge.com&quot; class=&quot;bb-url&quot;&gt;http://www.phplounge.com&lt;/a&gt; you might find it useful &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/big.png&quot; title=&quot;Laughing out loud&quot; alt=&quot;Laughing out loud&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Thu, 30 Jan 2003 09:14:57 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1124522 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
