<?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>No Name &#187; api</title>
	<atom:link href="http://blog.schoash.com/tag/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.schoash.com</link>
	<description></description>
	<lastBuildDate>Thu, 07 Oct 2010 13:18:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Generating a is.gd url using PHP</title>
		<link>http://blog.schoash.com/2009/11/13/generating-a-is-gd-url-using-php/</link>
		<comments>http://blog.schoash.com/2009/11/13/generating-a-is-gd-url-using-php/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 21:46:25 +0000</pubDate>
		<dc:creator>blog</dc:creator>
				<category><![CDATA[dev]]></category>
		<category><![CDATA[wp]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[is.gd]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.schoash.com/?p=156</guid>
		<description><![CDATA[I was just adjusting a plugin on my blog, when I needed to shrink urls on the fly with is.gd.

function getShortUrl($url) {
$c = curl_init();
curl_setopt($c, CURLOPT_URL, 'http://is.gd/api.php?longurl=' . $url);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 3);
$ret = curl_exec($c);
curl_close($c);
return $ret;
}

Have fun generating those links.
]]></description>
			<content:encoded><![CDATA[<p>I was just adjusting a plugin on my blog, when I needed to shrink urls on the fly with is.gd.<br />
<code><br />
function getShortUrl($url) {<br />
$c = curl_init();<br />
curl_setopt($c, CURLOPT_URL, 'http://is.gd/api.php?longurl=' . $url);<br />
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);<br />
curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 3);<br />
$ret = curl_exec($c);<br />
curl_close($c);<br />
return $ret;<br />
}<br />
</code></p>
<p>Have fun generating those links.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.schoash.com/2009/11/13/generating-a-is-gd-url-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

