<?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 URL shortener using PHP</title>
	<atom:link href="http://devlup.com/programming/php/create-url-shortener-php/853/feed/" rel="self" type="application/rss+xml" />
	<link>http://devlup.com/programming/php/create-url-shortener-php/853/</link>
	<description>Devlup your skills</description>
	<lastBuildDate>Wed, 15 Feb 2012 16:00:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: mathechr</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-1795</link>
		<dc:creator>mathechr</dc:creator>
		<pubDate>Wed, 15 Feb 2012 16:00:40 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-1795</guid>
		<description>How did you get it to work? I&#039;m getting the same error....</description>
		<content:encoded><![CDATA[<p>How did you get it to work? I&#8217;m getting the same error&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-1758</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 17 Jan 2012 09:45:02 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-1758</guid>
		<description>Why is this using an random integer for the database id, shouldn&#039;t the database decide on that? What if they clash? It&#039;s not checking if it exists before attempting to use it, and anyway, why not just have SQL auto increment the ID? If you need to know the id for the encryption, (not that that&#039;s a good idea), but you&#039;d use mysql_insert_id(); to find out what auto increment value the database used.

Every part of your tutorial is really amateur coding, you should probably have mentioned that in your post somewhere, before others learn anything from it.</description>
		<content:encoded><![CDATA[<p>Why is this using an random integer for the database id, shouldn&#8217;t the database decide on that? What if they clash? It&#8217;s not checking if it exists before attempting to use it, and anyway, why not just have SQL auto increment the ID? If you need to know the id for the encryption, (not that that&#8217;s a good idea), but you&#8217;d use mysql_insert_id(); to find out what auto increment value the database used.</p>
<p>Every part of your tutorial is really amateur coding, you should probably have mentioned that in your post somewhere, before others learn anything from it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeyaganesh</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-1711</link>
		<dc:creator>Jeyaganesh</dc:creator>
		<pubDate>Sat, 10 Dec 2011 06:45:44 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-1711</guid>
		<description>It depends on &lt;a href=&quot;http://php.net/manual/en/function.base-convert.php&quot; rel=&quot;nofollow&quot;&gt;base-convert&lt;/a&gt; function and the number of digits you specify in the rand() function. Thanks.</description>
		<content:encoded><![CDATA[<p>It depends on <a href="http://php.net/manual/en/function.base-convert.php" rel="nofollow">base-convert</a> function and the number of digits you specify in the rand() function. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-1706</link>
		<dc:creator>Eric</dc:creator>
		<pubDate>Thu, 08 Dec 2011 16:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-1706</guid>
		<description>How can you make the key longer than 4 characters ei up to 5 or 6</description>
		<content:encoded><![CDATA[<p>How can you make the key longer than 4 characters ei up to 5 or 6</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeyaganesh</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-1401</link>
		<dc:creator>Jeyaganesh</dc:creator>
		<pubDate>Tue, 18 Oct 2011 17:10:04 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-1401</guid>
		<description>Rob,

There was a typo in the code,Now I have corrected  it.Please download the code and try again.

Thanks.</description>
		<content:encoded><![CDATA[<p>Rob,</p>
<p>There was a typo in the code,Now I have corrected  it.Please download the code and try again.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-1399</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 18 Oct 2011 15:21:09 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-1399</guid>
		<description>I have implemented this all and I can write to the DB with shorten.php but when I put the shorted URL in I get:

Not Found

The requested URL /ltxh was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/1.3.42 Server at sendnow.co Port 80

Any ideas on why?</description>
		<content:encoded><![CDATA[<p>I have implemented this all and I can write to the DB with shorten.php but when I put the shorted URL in I get:</p>
<p>Not Found</p>
<p>The requested URL /ltxh was not found on this server.<br />
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p>
<p>Apache/1.3.42 Server at sendnow.co Port 80</p>
<p>Any ideas on why?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: c0mma</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-1135</link>
		<dc:creator>c0mma</dc:creator>
		<pubDate>Mon, 11 Jul 2011 06:15:55 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-1135</guid>
		<description>Forget it, i got it working ;D http://url.c0mma.net - take a look ;D</description>
		<content:encoded><![CDATA[<p>Forget it, i got it working ;D <a href="http://url.c0mma.net" rel="nofollow">http://url.c0mma.net</a> &#8211; take a look ;D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: c0mma</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-1134</link>
		<dc:creator>c0mma</dc:creator>
		<pubDate>Mon, 11 Jul 2011 05:44:53 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-1134</guid>
		<description>When I shorten the url, go to the url, it says; Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/c0mmanet/public_html/url/decoder.php on line 19

http://url.c0mma.net/ipgi</description>
		<content:encoded><![CDATA[<p>When I shorten the url, go to the url, it says; Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/c0mmanet/public_html/url/decoder.php on line 19</p>
<p><a href="http://url.c0mma.net/ipgi" rel="nofollow">http://url.c0mma.net/ipgi</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeyaganesh</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-1077</link>
		<dc:creator>Jeyaganesh</dc:creator>
		<pubDate>Sat, 18 Jun 2011 16:07:04 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-1077</guid>
		<description>Thanks Tyler.</description>
		<content:encoded><![CDATA[<p>Thanks Tyler.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyler</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-1076</link>
		<dc:creator>Tyler</dc:creator>
		<pubDate>Sat, 18 Jun 2011 15:36:39 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-1076</guid>
		<description>Bah my code didnt work
To do the redirect in PHP

header(&quot;Location: &quot;. $res);
exit();

:)</description>
		<content:encoded><![CDATA[<p>Bah my code didnt work<br />
To do the redirect in PHP</p>
<p>header(&#8220;Location: &#8220;. $res);<br />
exit();</p>
<p> <img src='http://devlup.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

