<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Hiding Links With PHP and Counting Clicks with MySQL</title>
	<atom:link href="http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/</link>
	<description></description>
	<pubDate>Thu, 04 Dec 2008 19:12:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Modify Script - Add Stats &#124; work from home data entry jobs</title>
		<link>http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-6493</link>
		<dc:creator>Modify Script - Add Stats &#124; work from home data entry jobs</dc:creator>
		<pubDate>Thu, 20 Nov 2008 22:00:29 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-6493</guid>
		<description>[...] counts all the links together. I am not that good at PHP, but the code I used can be found here:rrhttp://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/rrYou can use the above code or not, your choice.rrI want the clicks displayed in a graph, you can [...]</description>
		<content:encoded><![CDATA[<p>[...] counts all the links together. I am not that good at PHP, but the code I used can be found here:rrhttp://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/rrYou can use the above code or not, your choice.rrI want the clicks displayed in a graph, you can [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sunga</title>
		<link>http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-6486</link>
		<dc:creator>Sunga</dc:creator>
		<pubDate>Thu, 20 Nov 2008 12:03:53 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-6486</guid>
		<description>If this could be made into a wordpress plugin, it would be of very great help for non-coders out here. Anyone up for the challenge?</description>
		<content:encoded><![CDATA[<p>If this could be made into a wordpress plugin, it would be of very great help for non-coders out here. Anyone up for the challenge?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Why and How To Cloak Your Affiliate Links &#124; Nigerian Entrepreneur</title>
		<link>http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-6433</link>
		<dc:creator>Why and How To Cloak Your Affiliate Links &#124; Nigerian Entrepreneur</dc:creator>
		<pubDate>Mon, 17 Nov 2008 18:08:28 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-6433</guid>
		<description>[...] Redirect Scripts (if you love codes try Studge) [...]</description>
		<content:encoded><![CDATA[<p>[...] Redirect Scripts (if you love codes try Studge) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-5989</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Wed, 01 Oct 2008 02:57:25 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-5989</guid>
		<description>Is there a similar script that will support links stored in MySQL that are displayed on pages via a php echo from a recordset?  Each link is in it's own record along with the affiliate name.
thx,
Dave</description>
		<content:encoded><![CDATA[<p>Is there a similar script that will support links stored in MySQL that are displayed on pages via a php echo from a recordset?  Each link is in it&#8217;s own record along with the affiliate name.<br />
thx,<br />
Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Gabos</title>
		<link>http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-5133</link>
		<dc:creator>Stefan Gabos</dc:creator>
		<pubDate>Mon, 30 Jun 2008 12:47:40 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-5133</guid>
		<description>uh oh. this is VERY BAD. if you run a directory or some link exchange website than this will actually do no good to the websites you are linking to and it can even harm you :) As far as Google is concerned (or any other search engine) you are not pointing to any particular website with these links but rather to a page with no content (as your redirect.php generates no output). Therefore, these links will not be considered neither outbound links nor inbound links. In what regards the search engines, you have a lot of links pointing nowhere...

But, the solution is quite simple and you won't have to scrap all your code :)

Before the line

header("Location:".$links[$id]);

add

header( "HTTP/1.1 301 Moved Permanently" );

And ta-da, your links are all SEO friendly. 

Now, because I was useful,  please visit my php relate blog at &lt;a href="http://stefangabos.blogspot.com" title="Free PHP Classes" rel="nofollow"&gt;Zebra PHP Components Framework"&lt;/a&gt; and my &lt;a href="http://2famo.us" title="2famous - Be in charhe with the Internet marketing and website promotion of your website and attract more web site traffic today!" rel="nofollow"&gt;Do-it yourself Internet promotion&lt;/a&gt; website</description>
		<content:encoded><![CDATA[<p>uh oh. this is VERY BAD. if you run a directory or some link exchange website than this will actually do no good to the websites you are linking to and it can even harm you <img src='http://studge.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> As far as Google is concerned (or any other search engine) you are not pointing to any particular website with these links but rather to a page with no content (as your redirect.php generates no output). Therefore, these links will not be considered neither outbound links nor inbound links. In what regards the search engines, you have a lot of links pointing nowhere&#8230;</p>
<p>But, the solution is quite simple and you won&#8217;t have to scrap all your code <img src='http://studge.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Before the line</p>
<p>header(&#8221;Location:&#8221;.$links[$id]);</p>
<p>add</p>
<p>header( &#8220;HTTP/1.1 301 Moved Permanently&#8221; );</p>
<p>And ta-da, your links are all SEO friendly. </p>
<p>Now, because I was useful,  please visit my php relate blog at <a href="http://stefangabos.blogspot.com" title="Free PHP Classes" rel="nofollow">Zebra PHP Components Framework&#8221;</a> and my <a href="http://2famo.us" title="2famous - Be in charhe with the Internet marketing and website promotion of your website and attract more web site traffic today!" rel="nofollow">Do-it yourself Internet promotion</a> website</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyrre Nygård</title>
		<link>http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-4168</link>
		<dc:creator>Kyrre Nygård</dc:creator>
		<pubDate>Wed, 14 May 2008 23:45:23 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-4168</guid>
		<description>Very clean code, thanks a bunch!</description>
		<content:encoded><![CDATA[<p>Very clean code, thanks a bunch!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: UMTS Fan</title>
		<link>http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-3597</link>
		<dc:creator>UMTS Fan</dc:creator>
		<pubDate>Fri, 02 May 2008 14:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-3597</guid>
		<description>Did work for us too. Thanks!</description>
		<content:encoded><![CDATA[<p>Did work for us too. Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-2594</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Thu, 06 Mar 2008 22:24:23 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-2594</guid>
		<description>great script</description>
		<content:encoded><![CDATA[<p>great script</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chris S.</title>
		<link>http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-2408</link>
		<dc:creator>chris S.</dc:creator>
		<pubDate>Wed, 27 Feb 2008 20:12:24 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-2408</guid>
		<description>How can you make this work with several products,without adding each one by hand?</description>
		<content:encoded><![CDATA[<p>How can you make this work with several products,without adding each one by hand?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Studge</title>
		<link>http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-2075</link>
		<dc:creator>Studge</dc:creator>
		<pubDate>Thu, 07 Feb 2008 06:03:16 +0000</pubDate>
		<guid isPermaLink="false">http://studge.com/hiding-links-with-php-and-counting-clicks-with-mysql/#comment-2075</guid>
		<description>Have you tried running that link on its own? It is likely processing the affiliate ID number and then dumping the user at their main page with a cookie set on the user’s system to notify their server that you directed them to the site.

I have tested this method with URLs that are passing variables and it works just fine.</description>
		<content:encoded><![CDATA[<p>Have you tried running that link on its own? It is likely processing the affiliate ID number and then dumping the user at their main page with a cookie set on the user’s system to notify their server that you directed them to the site.</p>
<p>I have tested this method with URLs that are passing variables and it works just fine.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 2.039 seconds -->
