<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1022401" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1022401</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/flat-log-file#comment-1138253</link>
    <description> &lt;p&gt;Thanks.&lt;/p&gt;
 </description>
     <pubDate>Tue, 23 Sep 2003 10:57:04 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1138253 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/flat-log-file#comment-1138238</link>
    <description> &lt;p&gt;&lt;a href=&quot;http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server&quot; class=&quot;bb-url&quot;&gt;http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server&lt;/a&gt;&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &#039;REMOTE_ADDR&#039;&lt;br /&gt;
    The IP address from which the user is viewing the current page. &lt;/p&gt;
&lt;p&gt;&#039;REMOTE_HOST&#039;&lt;br /&gt;
    The Host name from which the user is viewing the current page. The reverse dns lookup is based off the REMOTE_ADDR of the user.&lt;/p&gt;
&lt;p&gt;        Note: Your web server must be configured to create this variable. For example in Apache you&#039;ll need HostnameLookups On inside httpd.conf for it to exist. See also gethostbyaddr(). &lt;/p&gt;&lt;/blockquote&gt;
 </description>
     <pubDate>Tue, 23 Sep 2003 04:36:00 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1138238 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/flat-log-file#comment-1138236</link>
    <description> &lt;p&gt;I&#039;m using&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;gethostbyname&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;HTTP_HOST&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;])&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;br /&gt;
to get an IP but I realised that I was getting the IP of my host, how do I get the IP of the viewer of my site?&lt;/p&gt;
 </description>
     <pubDate>Tue, 23 Sep 2003 01:32:21 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1138236 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/web-database-development/flat-log-file#comment-1138149</link>
    <description> &lt;p&gt;I figured it out now, heres the code that I used:&lt;/p&gt;
&lt;p&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;&amp;nbsp; $file &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;log.txt\&quot;;&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filetr&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = fopen(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$file&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, \&quot;r+\&quot;);&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$data_old&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = fread(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filetr&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, filesize(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$file&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;));&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filetr&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = fclose(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filetr&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filetr&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = fopen(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$file&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, \&quot;w+\&quot;);&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$log_string&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = array(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; gethostbyname(&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;HTTP_HOST&#039;]),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(\&quot;F j Y\&quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(\&quot;g:i:s A\&quot;),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;HTTP_REFERER&#039;],&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;PHP_SELF&#039;],&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;HTTP_USER_AGENT&#039;]&lt;br /&gt;&amp;nbsp; );&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$data_new&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = implode(\&quot;~\&quot;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$log_string&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$data&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$data_new&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; . \&quot;\n\&quot; . &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$data_old&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;;&lt;br /&gt;&amp;nbsp; fwrite(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filetr&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$data&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filetr&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt; = fclose(&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$filetr&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;);&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&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>Sun, 21 Sep 2003 01:17:15 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1138149 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
