<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1039228" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1039228</link>
    <description></description>
    <language>en</language>
          <item>
    <title>hi,
         what is the</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-script-log-link-clicks#comment-1267861</link>
    <description> &lt;p&gt;hi,&lt;/p&gt;
&lt;p&gt;         what is the minimum amount to spend for Google Adwords?&lt;/p&gt;
 </description>
     <pubDate>Fri, 05 Aug 2011 08:25:38 +0000</pubDate>
 <dc:creator>amrithaa2011</dc:creator>
 <guid isPermaLink="false">comment 1267861 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>As you have the word</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-script-log-link-clicks#comment-1267734</link>
    <description> &lt;p&gt;As you have the word backlinks in your question linked to a paid backlink service?? Or is that a feature of this forum? Anyways, if I get you right you want to INCREASE backlinks and not know how you do it in general. So here you go, this is a nice resource to get you started. You will find a lot of nice high PR sites here to get som link love&lt;/p&gt;
 </description>
     <pubDate>Tue, 02 Aug 2011 12:48:45 +0000</pubDate>
 <dc:creator>SEO Company</dc:creator>
 <guid isPermaLink="false">comment 1267734 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title>So, in redirect.php, accept</title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-script-log-link-clicks#comment-1266914</link>
    <description> &lt;p&gt;So, in redirect.php, accept something that counts how abounding times that page was visited (might wish to analysis area it&#039;s from too) as able-bodied is annihilation abroad you wish to add to the database again at the actual end, alter to the page it&#039;s declared to go to.All this happens in about 2 abnormal so, users don&#039;t absolutely apprehension it much.&lt;/p&gt;
 </description>
     <pubDate>Wed, 13 Jul 2011 21:32:08 +0000</pubDate>
 <dc:creator>avinmichal</dc:creator>
 <guid isPermaLink="false">comment 1266914 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-script-log-link-clicks#comment-1223028</link>
    <description> &lt;p&gt;You just need to write a little redirect script in PHP then send all links via that script. In code redirect.php would look something like this:&lt;/p&gt;
&lt;p&gt;&amp;lt;?PHP&lt;/p&gt;
&lt;p&gt;// decode the location you want to visit&lt;br /&gt;
$loc = base64_decode($_GET[&#039;loc&#039;]);&lt;/p&gt;
&lt;p&gt;// update the number of times this particular location has been visited in your database&lt;br /&gt;
$sql = &quot;UPDATE page_visits SET visits=visits+1 WHERE loc=&quot;.$loc.&quot; LIMIT 1&quot;;&lt;br /&gt;
$result = mysql_query($sql);&lt;/p&gt;
&lt;p&gt;header(&#039;Location: &#039;.$loc);&lt;/p&gt;
&lt;p&gt;?&amp;gt;&lt;/p&gt;
&lt;p&gt;Then you call redirect.php like this:&lt;/p&gt;
&lt;p&gt;&lt;a&gt;&quot;&amp;gt;Visit Google&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You&#039;ll obviously need to have a MySQL database setup with a table called page_visits with columns for visits and loc.&lt;/p&gt;
&lt;p&gt;I also encoded the url to make it look neater and less prone to parsing errors. I base64_encoded it because I like to be secretive sometimes.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Disclaimer: This is untested code and if it wipes you computer and starts global armageddon you can&#039;t blame me!&lt;/em&gt;&lt;/p&gt;
 </description>
     <pubDate>Mon, 13 Aug 2007 12:33:09 +0000</pubDate>
 <dc:creator>wopt</dc:creator>
 <guid isPermaLink="false">comment 1223028 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-script-log-link-clicks#comment-1222705</link>
    <description> &lt;p&gt;Not entirely sure how it would be done, but I have seen similar things inplemented several times, even here at TWF.&lt;/p&gt;
&lt;p&gt;Logging what you want is up to you, and can&#039;t really help too much on that but, I can say that at the end, all you really need is the following:&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; header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;Location: &quot; &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;. &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$url&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;/p&gt;
 </description>
     <pubDate>Sun, 05 Aug 2007 19:41:43 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1222705 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-script-log-link-clicks#comment-1222691</link>
    <description> &lt;p&gt;That sounds like a good option &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/nerdy.png&quot; title=&quot;Cool&quot; alt=&quot;Cool&quot; class=&quot;smiley-content&quot; /&gt; how would I do that? I&#039;m guessing using java script maybe? or asp/php would do the same?&lt;/p&gt;
&lt;p&gt;I think your redirect page idea is prob the best way of doing it, I had an idea last night but I think it would be difficult counting the number of visists from each user to a particular link. My idea was:&lt;/p&gt;
&lt;p&gt;On the page where the link is, get the current username thats logged in using a querystring (link.asp?user=username) Question: Can multiple querystrings be sent? for example, ?user=username, ?link=link, etc)&lt;/p&gt;
&lt;p&gt;That username is sent to another page which asks the user if they want to continue following that link, if the user clicks &#039;Ok&#039; the username is added to the database and then if I want the number of times that user clicked on the link I use row count where user=username?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Back to the redirect page idea&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Before the end part that redirects the user to the page they want to see, I would need something that stores:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The total views&lt;br /&gt;
The users who have clicked on the link&lt;br /&gt;
The number of times each user has clicked on the link&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I&#039;m going to research how to start going about this but any help or code examples will be very much appresiated! &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>Sun, 05 Aug 2007 11:10:54 +0000</pubDate>
 <dc:creator>drew22299</dc:creator>
 <guid isPermaLink="false">comment 1222691 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/serverside-scripting/php-script-log-link-clicks#comment-1222668</link>
    <description> &lt;p&gt;What you could try doing is a sort of redirect thing:&lt;br /&gt;
&lt;a href=&quot;redirect.php?user=foo&amp;amp;link=http://www.google.com&quot;&gt;Page&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;So, in redirect.php, have something that counts how many times that page was visited (might want to check where it&#039;s from too) as well is anything else you want to add to the database then at the very end, redirect to the page it&#039;s supposed to go to.&lt;/p&gt;
&lt;p&gt;All this happens in about 2 seconds so, users don&#039;t really notice it much.&lt;/p&gt;
 </description>
     <pubDate>Sat, 04 Aug 2007 21:24:46 +0000</pubDate>
 <dc:creator>Renegade</dc:creator>
 <guid isPermaLink="false">comment 1222668 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
