<?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 a TinyURL with TinyURL&#8217;s API</title>
	<atom:link href="http://www.richardcastera.com/2009/05/09/creating-a-tinyurl-with-tinyurl-api/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.richardcastera.com/2009/05/09/creating-a-tinyurl-with-tinyurl-api/</link>
	<description>Application Developer/Designer</description>
	<lastBuildDate>Tue, 31 Aug 2010 01:39:16 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: http://0114.wordpress.demo.a.topcities.com/?p=5</title>
		<link>http://www.richardcastera.com/2009/05/09/creating-a-tinyurl-with-tinyurl-api/#comment-345</link>
		<dc:creator>http://0114.wordpress.demo.a.topcities.com/?p=5</dc:creator>
		<pubDate>Wed, 03 Mar 2010 03:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=215#comment-345</guid>
		<description>&lt;strong&gt;http://0114.wordpress.demo.a.topcities.com/?p=5...&lt;/strong&gt;
Very good well informed ty you for the information. From the guys at http://bloggles.org...</description>
		<content:encoded><![CDATA[<p><strong><a href="http://0114.wordpress.demo.a.topcities.com/?p=5.." rel="nofollow">http://0114.wordpress.demo.a.topcities.com/?p=5..</a>.</strong></p>
<p>Very good well informed ty you for the information. From the guys at <a href="http://bloggles.org.." rel="nofollow">http://bloggles.org..</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.richardcastera.com/2009/05/09/creating-a-tinyurl-with-tinyurl-api/#comment-320</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Wed, 17 Feb 2010 01:54:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=215#comment-320</guid>
		<description>@Giulio, Cool! Thanks for sharing that!</description>
		<content:encoded><![CDATA[<p>@Giulio, Cool! Thanks for sharing that!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: giulio pons</title>
		<link>http://www.richardcastera.com/2009/05/09/creating-a-tinyurl-with-tinyurl-api/#comment-270</link>
		<dc:creator>giulio pons</dc:creator>
		<pubDate>Tue, 29 Dec 2009 18:19:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=215#comment-270</guid>
		<description>I&#039;ve made a function to convert back the short url into the long url:
http://www.barattalo.it/2009/12/29/tiny-url-encode-and-decode-with-php/
bye!
Giulio</description>
		<content:encoded><![CDATA[<p>I&#8217;ve made a function to convert back the short url into the long url:<br />
<a href="http://www.barattalo.it/2009/12/29/tiny-url-encode-and-decode-with-php/" rel="nofollow">http://www.barattalo.it/2009/12/29/tiny-url-encode-and-decode-with-php/</a><br />
bye!<br />
Giulio</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.richardcastera.com/2009/05/09/creating-a-tinyurl-with-tinyurl-api/#comment-259</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sat, 12 Dec 2009 18:09:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=215#comment-259</guid>
		<description>@Tony,
I believe it is possible. There is only 1 way to find out and that&#039;s to give it a try. Go their website (http://tinyurl.com/) and give it a shot. Another popular UR Shortening service is (http://bit.ly/)</description>
		<content:encoded><![CDATA[<p>@Tony,</p>
<p>I believe it is possible. There is only 1 way to find out and that&#8217;s to give it a try. Go their website (<a href="http://tinyurl.com/" rel="nofollow">http://tinyurl.com/</a>) and give it a shot. Another popular UR Shortening service is (<a href="http://bit.ly/" rel="nofollow">http://bit.ly/</a>)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.richardcastera.com/2009/05/09/creating-a-tinyurl-with-tinyurl-api/#comment-252</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sat, 12 Dec 2009 16:46:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=215#comment-252</guid>
		<description>@Tim, Thanks for posting! I&#039;m happy you found a solution :)</description>
		<content:encoded><![CDATA[<p>@Tim, Thanks for posting! I&#8217;m happy you found a solution <img src='http://www.richardcastera.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.richardcastera.com/2009/05/09/creating-a-tinyurl-with-tinyurl-api/#comment-248</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Wed, 09 Dec 2009 17:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=215#comment-248</guid>
		<description>// you must be stripping tags!
//gets the data from a URL
function get_tiny_url($url)
{
	$ch = curl_init();
	$timeout = 5;
	curl_setopt($ch,CURLOPT_URL,&#039;http://tinyurl.com/api-create.php?url=&#039;.$url);
	curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
	curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
	$data = curl_exec($ch);
	curl_close($ch);
	return $data;
}
//test it out!
$new_url = get_tiny_url(&#039;http://mbnusa.biz/articles.php?aid=68046caa4c-20091125123848&amp;CatID=3&amp;SubCatID=2&#039;);
//returns http://tinyurl.com/65gqpp
echo $new_url</description>
		<content:encoded><![CDATA[<p>// you must be stripping tags!</p>
<p>//gets the data from a URL<br />
function get_tiny_url($url)<br />
{<br />
	$ch = curl_init();<br />
	$timeout = 5;<br />
	curl_setopt($ch,CURLOPT_URL,&#8217;http://tinyurl.com/api-create.php?url=&#8217;.$url);<br />
	curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);<br />
	curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);<br />
	$data = curl_exec($ch);<br />
	curl_close($ch);<br />
	return $data;<br />
}</p>
<p>//test it out!<br />
$new_url = get_tiny_url(&#8216;http://mbnusa.biz/articles.php?aid=68046caa4c-20091125123848&amp;CatID=3&amp;SubCatID=2&#8242;);</p>
<p>//returns <a href="http://tinyurl.com/65gqpp" rel="nofollow">http://tinyurl.com/65gqpp</a><br />
echo $new_url</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.richardcastera.com/2009/05/09/creating-a-tinyurl-with-tinyurl-api/#comment-247</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Wed, 09 Dec 2009 17:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=215#comment-247</guid>
		<description>Hey Richard-
Update on my above post. I found another method using CURL feature in PHP instead of get_file_contents. Here it is for your readers&#039; entertainment!
Of course, I am using this to add a tinyurl to a Twitter post notifying followers of a new article on my client&#039;s website. So coupling this with Twitter&#039;s totally simple API, I am able to do this!
Thanks for the article, it ultimately pointed me in the correct destination for my specific purposes!
Tim</description>
		<content:encoded><![CDATA[<p>Hey Richard-<br />
Update on my above post. I found another method using CURL feature in PHP instead of get_file_contents. Here it is for your readers&#8217; entertainment!</p>
<p>Of course, I am using this to add a tinyurl to a Twitter post notifying followers of a new article on my client&#8217;s website. So coupling this with Twitter&#8217;s totally simple API, I am able to do this!</p>
<p>Thanks for the article, it ultimately pointed me in the correct destination for my specific purposes!</p>
<p>Tim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.richardcastera.com/2009/05/09/creating-a-tinyurl-with-tinyurl-api/#comment-245</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Wed, 09 Dec 2009 17:20:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=215#comment-245</guid>
		<description>Hey Richard -
Thanks for saving me the time of scouring the web for this info!
I am having a small-ish problem with permissions. My client has a hosting account with 1and1.com (VPS). When I run your script, I am getting the following errors, which I assume have to do with server settings:
1. failed to open stream: no suitable wrapper could be found
2. file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration
Any thoughts?
Cheers,
Tim</description>
		<content:encoded><![CDATA[<p>Hey Richard -<br />
Thanks for saving me the time of scouring the web for this info!</p>
<p>I am having a small-ish problem with permissions. My client has a hosting account with 1and1.com (VPS). When I run your script, I am getting the following errors, which I assume have to do with server settings:</p>
<p>1. failed to open stream: no suitable wrapper could be found<br />
2. file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration</p>
<p>Any thoughts?<br />
Cheers,<br />
Tim</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony</title>
		<link>http://www.richardcastera.com/2009/05/09/creating-a-tinyurl-with-tinyurl-api/#comment-209</link>
		<dc:creator>Tony</dc:creator>
		<pubDate>Mon, 09 Nov 2009 23:45:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=215#comment-209</guid>
		<description>We are playing around with using tinyURL to replace some of our dynamic encrypted keys. Can you advise on whether TinyURL can achieve the following
1. At present we sell a software online that generates an email. This email contains a link that consists of up to 100 characters (encrypted - order - email etc included in the string) that when clicked will direct to an installation page and carry through the encrypted data needed.
2. The problem we have is that a small number of people are not able to view the button (click here) that starts the automatic installation. The other problem is that a small number of people risk because of the string size not properly copy and paste the full licence key (installation URL)
3. What I am thinking is that &quot;In Theory&quot; we can convert the URL installation (which contains hash characters MD5 and dynamic data) into a Tiny URL. The alternate text for the button would then appear as the TinyURL and therefore those people not able to see the button will not view a lengthy (and sometimes scary string) instead seeing a friendly - short - TinyURL.
4. The end result is that then customers can copy and paste the Tiny URL (easier than previous URL) and then in a new browser easily start the installation process.
So the keywords here are &quot;In Theory&quot; and it would be appreciated if someone could give me feedback on whether integrating the TinyURL API would in fact create function TinyURL for our Installation URL&#039;s
Thanks in advance.....</description>
		<content:encoded><![CDATA[<p>We are playing around with using tinyURL to replace some of our dynamic encrypted keys. Can you advise on whether TinyURL can achieve the following</p>
<p>1. At present we sell a software online that generates an email. This email contains a link that consists of up to 100 characters (encrypted &#8211; order &#8211; email etc included in the string) that when clicked will direct to an installation page and carry through the encrypted data needed.</p>
<p>2. The problem we have is that a small number of people are not able to view the button (click here) that starts the automatic installation. The other problem is that a small number of people risk because of the string size not properly copy and paste the full licence key (installation URL)</p>
<p>3. What I am thinking is that &#8220;In Theory&#8221; we can convert the URL installation (which contains hash characters MD5 and dynamic data) into a Tiny URL. The alternate text for the button would then appear as the TinyURL and therefore those people not able to see the button will not view a lengthy (and sometimes scary string) instead seeing a friendly &#8211; short &#8211; TinyURL.</p>
<p>4. The end result is that then customers can copy and paste the Tiny URL (easier than previous URL) and then in a new browser easily start the installation process.</p>
<p>So the keywords here are &#8220;In Theory&#8221; and it would be appreciated if someone could give me feedback on whether integrating the TinyURL API would in fact create function TinyURL for our Installation URL&#8217;s</p>
<p>Thanks in advance&#8230;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://www.richardcastera.com/2009/05/09/creating-a-tinyurl-with-tinyurl-api/#comment-129</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Sat, 15 Aug 2009 02:11:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.richardcastera.com/?p=215#comment-129</guid>
		<description>@Chris,
Hey so here is how you can accomplish this. Mind you this is a quick example and you should account for failures and invalid return values.
// Your function to get the current page URL.
function yourGetPageCurrentURL() {
    return $_SERVER[&quot;SERVER_NAME&quot;] . $_SERVER[&quot;REQUEST_URI&quot;];
}
// My function to generate a Tiny URL.
function createTinyUrl($strURL) {
    $tinyurl = file_get_contents(&quot;http://tinyurl.com/api-create.php?url=&quot;.$strURL);
    return $tinyurl;
}
$currentURL = yourGetPageCurrentURL();
echo(createTinyUrl($currentURL));
Hope this helps ;)</description>
		<content:encoded><![CDATA[<p>@Chris,</p>
<p>Hey so here is how you can accomplish this. Mind you this is a quick example and you should account for failures and invalid return values.</p>
<p>// Your function to get the current page URL.<br />
function yourGetPageCurrentURL() {<br />
    return $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];<br />
}</p>
<p>// My function to generate a Tiny URL.<br />
function createTinyUrl($strURL) {<br />
    $tinyurl = file_get_contents(&#8220;http://tinyurl.com/api-create.php?url=&#8221;.$strURL);<br />
    return $tinyurl;<br />
}</p>
<p>$currentURL = yourGetPageCurrentURL();<br />
echo(createTinyUrl($currentURL));</p>
<p>Hope this helps <img src='http://www.richardcastera.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.318 seconds -->
