<?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: Creating short URLs with PHP and the TinyURL API</title>
	<atom:link href="http://www.pezholio.co.uk/2009/03/creating-short-urls-with-php-and-the-tinyurl-api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.pezholio.co.uk/2009/03/creating-short-urls-with-php-and-the-tinyurl-api/</link>
	<description>Musings on local government, web development, music and tings</description>
	<lastBuildDate>Mon, 03 Oct 2011 13:28:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Pez</title>
		<link>http://www.pezholio.co.uk/2009/03/creating-short-urls-with-php-and-the-tinyurl-api/comment-page-1/#comment-178</link>
		<dc:creator>Pez</dc:creator>
		<pubDate>Mon, 10 Aug 2009 11:52:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.pezholio.co.uk/?p=56#comment-178</guid>
		<description>Hi Dan,

That would be pretty simple to sort I reckon. Just stick the urls you want into an array like so:

&lt;code&gt;
$links = array(&#039;http://www.link1.com&#039;,&#039;http://www.link2.com&#039;,&#039;http://www.link3.com&#039;,&#039;http://www.link4.com&#039;);
&lt;/code&gt;

And then loop through the array, applying the function to each link like so:

&lt;code&gt;
foreach ($links as $link) {
$short[] = tinyurl($link);
}
&lt;/code&gt;

You&#039;ll then be able to access each link via $short[0], $short[1], $short[2] etc.

Hope this helps!</description>
		<content:encoded><![CDATA[<p>Hi Dan,</p>
<p>That would be pretty simple to sort I reckon. Just stick the urls you want into an array like so:</p>
<p><code><br />
$links = array('http://www.link1.com','http://www.link2.com','http://www.link3.com','http://www.link4.com');<br />
</code></p>
<p>And then loop through the array, applying the function to each link like so:</p>
<p><code><br />
foreach ($links as $link) {<br />
$short[] = tinyurl($link);<br />
}<br />
</code></p>
<p>You&#8217;ll then be able to access each link via $short[0], $short[1], $short[2] etc.</p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan</title>
		<link>http://www.pezholio.co.uk/2009/03/creating-short-urls-with-php-and-the-tinyurl-api/comment-page-1/#comment-177</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Mon, 10 Aug 2009 06:03:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.pezholio.co.uk/?p=56#comment-177</guid>
		<description>Thank you for the example.

What if:

I need to make shorter multiple links. All that i need is a shorter url for each.

Do you have any clue ?

thank you.</description>
		<content:encoded><![CDATA[<p>Thank you for the example.</p>
<p>What if:</p>
<p>I need to make shorter multiple links. All that i need is a shorter url for each.</p>
<p>Do you have any clue ?</p>
<p>thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pez</title>
		<link>http://www.pezholio.co.uk/2009/03/creating-short-urls-with-php-and-the-tinyurl-api/comment-page-1/#comment-110</link>
		<dc:creator>Pez</dc:creator>
		<pubDate>Wed, 27 May 2009 09:07:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.pezholio.co.uk/?p=56#comment-110</guid>
		<description>I&#039;ve never touched SOAP to be honest, but I&#039;d give it a try with the native PHP soap first, if no joy, try nusoap. There are ways and means round these things, so you might not even need to use either.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve never touched SOAP to be honest, but I&#8217;d give it a try with the native PHP soap first, if no joy, try nusoap. There are ways and means round these things, so you might not even need to use either.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Native</title>
		<link>http://www.pezholio.co.uk/2009/03/creating-short-urls-with-php-and-the-tinyurl-api/comment-page-1/#comment-109</link>
		<dc:creator>Native</dc:creator>
		<pubDate>Wed, 27 May 2009 08:53:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.pezholio.co.uk/?p=56#comment-109</guid>
		<description>I want to soap to create shorter URLs and I am currently looking at using the service provided at 101.gs - there is an example soap call at http://101.gs/apiexample.php - do I need nusoap or can I use the native php soap?</description>
		<content:encoded><![CDATA[<p>I want to soap to create shorter URLs and I am currently looking at using the service provided at 101.gs &#8211; there is an example soap call at <a href="http://101.gs/apiexample.php" rel="nofollow">http://101.gs/apiexample.php</a> &#8211; do I need nusoap or can I use the native php soap?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave P</title>
		<link>http://www.pezholio.co.uk/2009/03/creating-short-urls-with-php-and-the-tinyurl-api/comment-page-1/#comment-73</link>
		<dc:creator>Dave P</dc:creator>
		<pubDate>Wed, 18 Mar 2009 09:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.pezholio.co.uk/?p=56#comment-73</guid>
		<description>cool article</description>
		<content:encoded><![CDATA[<p>cool article</p>
]]></content:encoded>
	</item>
</channel>
</rss>

