<?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>Thu, 17 May 2012 01:13:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jeyaganesh</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-2128</link>
		<dc:creator>Jeyaganesh</dc:creator>
		<pubDate>Sun, 22 Apr 2012 15:06:39 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-2128</guid>
		<description>Thanks Tony for pointing out the errors.</description>
		<content:encoded><![CDATA[<p>Thanks Tony for pointing out the errors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony P</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-2117</link>
		<dc:creator>Tony P</dc:creator>
		<pubDate>Thu, 19 Apr 2012 14:22:54 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-2117</guid>
		<description>Nice script but two suggestions:

1) You might want to do some validation on the long URL to make sure the user didn&#039;t forget http:// or that it doesn&#039;t get a 404 error.

2) I ran a simple script that generated 1,000 shortened URLs using this method and got at least 3 or 4 duplicates every time I ran it.  You might want to create a function to ensure the generated shorturl is unique in the database otherwise you&#039;re going to run into some problems.

Good job otherwise...thanks for the post!</description>
		<content:encoded><![CDATA[<p>Nice script but two suggestions:</p>
<p>1) You might want to do some validation on the long URL to make sure the user didn&#8217;t forget http:// or that it doesn&#8217;t get a 404 error.</p>
<p>2) I ran a simple script that generated 1,000 shortened URLs using this method and got at least 3 or 4 duplicates every time I ran it.  You might want to create a function to ensure the generated shorturl is unique in the database otherwise you&#8217;re going to run into some problems.</p>
<p>Good job otherwise&#8230;thanks for the post!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeyaganesh</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-1925</link>
		<dc:creator>Jeyaganesh</dc:creator>
		<pubDate>Tue, 06 Mar 2012 19:54:49 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-1925</guid>
		<description>I agree Chris,this could be a good tutorial for php beginners.</description>
		<content:encoded><![CDATA[<p>I agree Chris,this could be a good tutorial for php beginners.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-1921</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Fri, 02 Mar 2012 09:16:44 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-1921</guid>
		<description>Generating an ID based on a random number could easily created two IDs that are the same.</description>
		<content:encoded><![CDATA[<p>Generating an ID based on a random number could easily created two IDs that are the same.</p>
]]></content:encoded>
	</item>
	<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: Alex</title>
		<link>http://devlup.com/programming/php/create-url-shortener-php/853/comment-page-1/#comment-1790</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 08 Feb 2012 14:17:35 +0000</pubDate>
		<guid isPermaLink="false">http://devlup.com/?p=853#comment-1790</guid>
		<description>Hello! Thanks for this script! But there is a problem: when i&#039;m pressing &quot;short&quot; it&#039;s only shows me a text of shorten.php. What is wrong?
P.s. Can you give me a code of mysql table for this script, please?</description>
		<content:encoded><![CDATA[<p>Hello! Thanks for this script! But there is a problem: when i&#8217;m pressing &#8220;short&#8221; it&#8217;s only shows me a text of shorten.php. What is wrong?<br />
P.s. Can you give me a code of mysql table for this script, please?</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>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic
Content Delivery Network via cdn.devlup.com

Served from: devlup.com @ 2012-05-18 23:20:49 -->
