<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1027416" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1027416</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/tracing-visitors#comment-1163461</link>
    <description> &lt;p&gt;Thanks for the reply ctp Awesome I am still trying to work out what it all means as I have no knowlage of my sql yetand it has gone a bit over my head but many thanks anyway.&lt;/p&gt;
 </description>
     <pubDate>Wed, 29 Dec 2004 11:41:18 +0000</pubDate>
 <dc:creator>karmaman</dc:creator>
 <guid isPermaLink="false">comment 1163461 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/tracing-visitors#comment-1163385</link>
    <description> &lt;p&gt;2 ways&lt;/p&gt;
&lt;p&gt;1: ID&lt;br /&gt;
This is what I would consider the more accurate, and better method. Assign each person who used the banner a customer ID of sorts (some random 5 digit number?) send them to a script that register&#039;s the click, and then forwards them to the appropriate place using the php header() code.&lt;/p&gt;
&lt;p&gt;with this, you&#039;d need to have maybe 3 text files, or a single database table with 3 columns, in fact, you&#039;d only techincally need 2, but ID looks better than the full http string. So the banner ad links to &lt;a href=&quot;http://www.domain.tld/clickthru.php?id=62477&quot; class=&quot;bb-url&quot;&gt;http://www.domain.tld/clickthru.php?id=62477&lt;/a&gt; the script is pretty short (something like this):&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;?&lt;br /&gt;$id = $_GET[&amp;#039;ID&amp;#039;]; // this makes sure that you are only getting the ID from the ?ID=&lt;br /&gt;/* then you&amp;#039;ll need some code to pull the 3 pieces of information from the 3 databases about the hits, this can be done with something like MySQL or just a textfile (but that&amp;#039;s insecure)&lt;br /&gt;Now, lets say you have the array with the 3 pieces of info, the ID is the key, and the number of hits, and the URL are values you&amp;#039;d end up with an array like this:&lt;br /&gt;array [62477][hits] = &amp;lt;a href=&amp;quot;http://www.advertiser.com&amp;quot; class=&amp;quot;bb-url&amp;quot;&amp;gt;advertiser.com&amp;lt;/a&amp;gt; // (or you can assign friendly names to them&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [hits] = 1247&lt;br /&gt;*/&lt;br /&gt;So now you could go&lt;br /&gt;$array[$id][hits]++;&lt;br /&gt;/*code to save the processed info to the database*/&lt;br /&gt;$go = &amp;quot;http://www.yourwebsite.com&amp;quot;;&lt;br /&gt;header(location:$go);&lt;br /&gt;?&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;2: http_referer&lt;br /&gt;
Referer is a slightly less accurate because of differences in browsers. Also, you&#039;d be getting hits that aren&#039;t from the banners, and you&#039;d have more info to go through. For basic tracking of this type, almost without fail I reccommend this one: &lt;a href=&quot;http://www.plebian.com/news.php?artc=4&quot; class=&quot;bb-url&quot;&gt;http://www.plebian.com/news.php?artc=4&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 28 Dec 2004 00:45:24 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1163385 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/tracing-visitors#comment-1163319</link>
    <description> &lt;p&gt;Thanks for the steer to hot scripts, just to clarify,all I need is to know which site has provided the clickthrough from a banner of the clients which is placed on thier web site.&lt;/p&gt;
 </description>
     <pubDate>Sun, 26 Dec 2004 23:55:28 +0000</pubDate>
 <dc:creator>karmaman</dc:creator>
 <guid isPermaLink="false">comment 1163319 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/tracing-visitors#comment-1163009</link>
    <description> &lt;p&gt;&lt;a href=&quot;http://www.plebian.com/news.php?artc=4&quot; class=&quot;bb-url&quot;&gt;http://www.plebian.com/news.php?artc=4&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 20 Dec 2004 18:58:47 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1163009 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/tracing-visitors#comment-1162969</link>
    <description> &lt;p&gt;Have a look through &lt;a href=&quot;http://www.hotscripts.com&quot; class=&quot;bb-url&quot;&gt;hotscripts.com&lt;/a&gt; for ad management and referral type scripts. Even if you don&#039;t use them, you could learn from the code. &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;I believe you can get the referring path from the HTTP_REFERER variable. &lt;a href=&quot;http://nz2.php.net/manual/en/reserved.variables.php#reserved.variables.server&quot; class=&quot;bb-url&quot;&gt;In PHP&lt;/a&gt; you would uses $_SERVER[&quot;HTTP_REFERER&quot;]:&lt;/p&gt;
&lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;Quote: &#039;HTTP_REFERER&#039;&lt;/p&gt;
&lt;p&gt;    The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted. &lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
 </description>
     <pubDate>Sat, 18 Dec 2004 13:53:24 +0000</pubDate>
 <dc:creator>Abhishek Reddy</dc:creator>
 <guid isPermaLink="false">comment 1162969 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
