<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to : Create a simple url shortener script is a few minutes</title>
	<atom:link href="http://djpate.com/2009/08/09/how-to-create-a-simple-url-shortener-script-is-a-few-minuts/feed/" rel="self" type="application/rss+xml" />
	<link>http://djpate.com/2009/08/09/how-to-create-a-simple-url-shortener-script-is-a-few-minuts/</link>
	<description>A do-it yourself blog</description>
	<lastBuildDate>Wed, 30 Jun 2010 10:54:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Marc</title>
		<link>http://djpate.com/2009/08/09/how-to-create-a-simple-url-shortener-script-is-a-few-minuts/comment-page-1/#comment-2437</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Thu, 03 Jun 2010 23:27:02 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=90#comment-2437</guid>
		<description>Thank you for this nice script ... works perfect!!! :-)

How can i protect my shorter?

I don&#039;t want to run it public... it&#039;s only for me ;-)</description>
		<content:encoded><![CDATA[<p>Thank you for this nice script &#8230; works perfect!!! <img src='http://djpate.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>How can i protect my shorter?</p>
<p>I don&#8217;t want to run it public&#8230; it&#8217;s only for me <img src='http://djpate.com/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chipz</title>
		<link>http://djpate.com/2009/08/09/how-to-create-a-simple-url-shortener-script-is-a-few-minuts/comment-page-1/#comment-1971</link>
		<dc:creator>chipz</dc:creator>
		<pubDate>Mon, 22 Feb 2010 03:21:26 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=90#comment-1971</guid>
		<description>nice! this is exactly what i find!</description>
		<content:encoded><![CDATA[<p>nice! this is exactly what i find!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DrenthOne</title>
		<link>http://djpate.com/2009/08/09/how-to-create-a-simple-url-shortener-script-is-a-few-minuts/comment-page-1/#comment-1882</link>
		<dc:creator>DrenthOne</dc:creator>
		<pubDate>Wed, 03 Feb 2010 20:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=90#comment-1882</guid>
		<description>I copied the exact RewriteRule ^([0-9]*)$ show.php?id=$1 line into .htaccess files on two different servers. Both times, I got the &quot;error: no hash&quot; message (not the text box in order to shorten a link I expected). If I type http://www.mysite/12235 directly in the urlbar it works though. Any tips on how to get the shorten textbox when typing http://www.mysite.com and a redirect when typing (or clicking) http://www.mysite.com/12235?

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>I copied the exact RewriteRule ^([0-9]*)$ show.php?id=$1 line into .htaccess files on two different servers. Both times, I got the &#8220;error: no hash&#8221; message (not the text box in order to shorten a link I expected). If I type <a href="http://www.mysite/12235" rel="nofollow">http://www.mysite/12235</a> directly in the urlbar it works though. Any tips on how to get the shorten textbox when typing <a href="http://www.mysite.com" rel="nofollow">http://www.mysite.com</a> and a redirect when typing (or clicking) <a href="http://www.mysite.com/12235?" rel="nofollow">http://www.mysite.com/12235?</a></p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SMeyer</title>
		<link>http://djpate.com/2009/08/09/how-to-create-a-simple-url-shortener-script-is-a-few-minuts/comment-page-1/#comment-1881</link>
		<dc:creator>SMeyer</dc:creator>
		<pubDate>Wed, 03 Feb 2010 18:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=90#comment-1881</guid>
		<description>Hello, thanks for the Code, but I have also the same problem as Tommy:
I changed 
select url from urls where id = $id
to
select url from urls where id = ‘$id’
and also I changed 
INT
to VARCHAR
but there is also the error: Unknown column &#039;pm4b&#039; in &#039;field list&#039;
Could you help me?

Best Regards</description>
		<content:encoded><![CDATA[<p>Hello, thanks for the Code, but I have also the same problem as Tommy:<br />
I changed<br />
select url from urls where id = $id<br />
to<br />
select url from urls where id = ‘$id’<br />
and also I changed<br />
INT<br />
to VARCHAR<br />
but there is also the error: Unknown column &#8216;pm4b&#8217; in &#8216;field list&#8217;<br />
Could you help me?</p>
<p>Best Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe Verbinnen</title>
		<link>http://djpate.com/2009/08/09/how-to-create-a-simple-url-shortener-script-is-a-few-minuts/comment-page-1/#comment-1876</link>
		<dc:creator>Christophe Verbinnen</dc:creator>
		<pubDate>Tue, 02 Feb 2010 22:30:53 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=90#comment-1876</guid>
		<description>you need to keep the ^ in the htaccess file.

RewriteRule ^([0-9]*)$ show.php?id=$1 [L] should work

^ means start of the reg ex</description>
		<content:encoded><![CDATA[<p>you need to keep the ^ in the htaccess file.</p>
<p>RewriteRule ^([0-9]*)$ show.php?id=$1 [L] should work</p>
<p>^ means start of the reg ex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DrenthOne</title>
		<link>http://djpate.com/2009/08/09/how-to-create-a-simple-url-shortener-script-is-a-few-minuts/comment-page-1/#comment-1875</link>
		<dc:creator>DrenthOne</dc:creator>
		<pubDate>Tue, 02 Feb 2010 22:26:34 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=90#comment-1875</guid>
		<description>removing all the /v parts form create.php and index.php and removing the ^v part from the .htaccess file results into a 404 error.

my create.php and index.php files now look like this:
echo &quot;Congrats ! here is your link : &lt;a href=&quot;$urlOfYourSite/$hash&quot; rel=&quot;nofollow&quot;&gt;$urlOfYourSite/$hash&lt;/a&gt;&quot;;
-&gt; so i only removed the /v parts.

my .htaccess file now looks like this:
Options +FollowSymlinks
RewriteEngine on
RewriteRule /([0-9]*)$ show.php?id=$1 [L]
-&gt; so i only removed the ^v</description>
		<content:encoded><![CDATA[<p>removing all the /v parts form create.php and index.php and removing the ^v part from the .htaccess file results into a 404 error.</p>
<p>my create.php and index.php files now look like this:<br />
echo &#8220;Congrats ! here is your link : <a href="$urlOfYourSite/$hash" rel="nofollow">$urlOfYourSite/$hash</a>&#8220;;<br />
-&gt; so i only removed the /v parts.</p>
<p>my .htaccess file now looks like this:<br />
Options +FollowSymlinks<br />
RewriteEngine on<br />
RewriteRule /([0-9]*)$ show.php?id=$1 [L]<br />
-&gt; so i only removed the ^v</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe Verbinnen</title>
		<link>http://djpate.com/2009/08/09/how-to-create-a-simple-url-shortener-script-is-a-few-minuts/comment-page-1/#comment-1870</link>
		<dc:creator>Christophe Verbinnen</dc:creator>
		<pubDate>Mon, 01 Feb 2010 23:01:20 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=90#comment-1870</guid>
		<description>Hello and thant you for your feeback.
you should be able to remove /v with no issue did you have some ?</description>
		<content:encoded><![CDATA[<p>Hello and thant you for your feeback.<br />
you should be able to remove /v with no issue did you have some ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DrenthOne</title>
		<link>http://djpate.com/2009/08/09/how-to-create-a-simple-url-shortener-script-is-a-few-minuts/comment-page-1/#comment-1868</link>
		<dc:creator>DrenthOne</dc:creator>
		<pubDate>Mon, 01 Feb 2010 20:56:04 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=90#comment-1868</guid>
		<description>Nice code! I&#039;ve one question though:

The script uses the following line:
echo &quot;Congrats ! here is your link : &lt;a href=&quot;$urlOfYourSite/v/$hash&quot; rel=&quot;nofollow&quot;&gt;$urlOfYourSite/v/$hash&lt;/a&gt;&quot;; 

and the following line in .htaccess file:
RewriteRule ^v/([0-9]*)$ show.php?id=$1 [L]

Now, I&#039;d like to create URLs without the /v parts (for instance: http://www.mysite.com/12345 instead of http://www.mysite.com/v/12345). Why can&#039;t I just to remove the /v parts form the codefiles and ^v part from the .htaccess file and what should I do in order to make it work?

Thanks!</description>
		<content:encoded><![CDATA[<p>Nice code! I&#8217;ve one question though:</p>
<p>The script uses the following line:<br />
echo &#8220;Congrats ! here is your link : <a href="$urlOfYourSite/v/$hash" rel="nofollow">$urlOfYourSite/v/$hash</a>&#8220;; </p>
<p>and the following line in .htaccess file:<br />
RewriteRule ^v/([0-9]*)$ show.php?id=$1 [L]</p>
<p>Now, I&#8217;d like to create URLs without the /v parts (for instance: <a href="http://www.mysite.com/12345" rel="nofollow">http://www.mysite.com/12345</a> instead of <a href="http://www.mysite.com/v/12345)" rel="nofollow">http://www.mysite.com/v/12345)</a>. Why can&#8217;t I just to remove the /v parts form the codefiles and ^v part from the .htaccess file and what should I do in order to make it work?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe Verbinnen</title>
		<link>http://djpate.com/2009/08/09/how-to-create-a-simple-url-shortener-script-is-a-few-minuts/comment-page-1/#comment-1526</link>
		<dc:creator>Christophe Verbinnen</dc:creator>
		<pubDate>Mon, 21 Dec 2009 21:39:40 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=90#comment-1526</guid>
		<description>you have to change 
this
select url from urls where id = $id
to
select url from urls where id = &#039;$id&#039;

to make it work with varchar...</description>
		<content:encoded><![CDATA[<p>you have to change<br />
this<br />
select url from urls where id = $id<br />
to<br />
select url from urls where id = &#8216;$id&#8217;</p>
<p>to make it work with varchar&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adshow</title>
		<link>http://djpate.com/2009/08/09/how-to-create-a-simple-url-shortener-script-is-a-few-minuts/comment-page-1/#comment-1525</link>
		<dc:creator>adshow</dc:creator>
		<pubDate>Mon, 21 Dec 2009 20:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://djpate.com/?p=90#comment-1525</guid>
		<description>its working good on my site  http://www.adshow.eu/ads.php</description>
		<content:encoded><![CDATA[<p>its working good on my site  <a href="http://www.adshow.eu/ads.php" rel="nofollow">http://www.adshow.eu/ads.php</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
