<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rudkin On Linux, Mac and Tech &#187; LAMP</title>
	<atom:link href="http://rudkin.me.uk/tag/lamp/feed/" rel="self" type="application/rss+xml" />
	<link>http://rudkin.me.uk</link>
	<description>Paul Rudkin&#039;s trials and tribulations with Linux, Mac and technology in general</description>
	<lastBuildDate>Wed, 25 Apr 2012 12:07:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Patch to Phurl 1.5, the PHP URL Shortening Script</title>
		<link>http://rudkin.me.uk/2009/04/12/patch-to-phurl-15-the-php-url-shortening-script/</link>
		<comments>http://rudkin.me.uk/2009/04/12/patch-to-phurl-15-the-php-url-shortening-script/#comments</comments>
		<pubDate>Sun, 12 Apr 2009 10:06:32 +0000</pubDate>
		<dc:creator>paul</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Patch]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Phurl]]></category>
		<category><![CDATA[URL Shortening]]></category>

		<guid isPermaLink="false">http://www.rudkin.me.uk/?p=63</guid>
		<description><![CDATA[Recently I saw some posts on twitter from @mled that contained short URLs linked to his own domain mled.me. After a few tweets I was introduced to the Phurl, the PHP URL Shortening Script which is the result of the hard work of Hidayet Dogan. This script is very easy to get installed and running [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I saw some posts on twitter from <a href="http://twitter.com/mled">@mled</a> that contained short URLs linked to his own domain <a href="http://mled.me">mled.me</a>.  After a few tweets I was introduced to the <a href="http://www.hido.net/projects/phurl/">Phurl</a>, the PHP URL Shortening Script which is the result of the hard work of <a href="http://www.hido.net">Hidayet Dogan</a>.</p>
<p>This script is very easy to get installed and running on a Linux box with a <a href="http://en.wikipedia.org/wiki/LAMP_(software_bundle)">LAMP</a> setup.  I then started to use it.  However when posting some <a href="http://www.launchpad.net">Launchpad</a> URLs that contained &#8216;+&#8217; characters, I discovered that <a href="http://www.hido.net/projects/phurl/">Phurl</a> did not store the URL correctly therefore causing the shortened URL not to wok.</p>
<p>I emailed Hidayet with this question, and overnight I got a response that included the fix:-</p>
<p>in create.php</p>
<p>change:</p>
<blockquote><p><code>$url   = trim(urldecode(@$_REQUEST['url']));<br />
</code></p></blockquote>
<p>to:</p>
<blockquote><p><code>$url   = trim(@$_REQUEST['url']);<br />
</code>
</p></blockquote>
<p>This will ensure that URLs are correctly stored in the database, including those containing the &#8216;+&#8217; character.</p>
<p>I am sure this fix will be included in the next release of <a href="http://www.hido.net/projects/phurl/">Phurl</a>, but to make sure your installation is free from this issue then make the changes above.</p>
]]></content:encoded>
			<wfw:commentRss>http://rudkin.me.uk/2009/04/12/patch-to-phurl-15-the-php-url-shortening-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

