<?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>Free Web Resources - Web Resources Depot &#187; TinyURL</title>
	<atom:link href="http://www.webresourcesdepot.com/tag/tinyurl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webresourcesdepot.com</link>
	<description>Free Web Resources</description>
	<lastBuildDate>Sun, 12 Feb 2012 13:06:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>How To Add Tweeting With Short URL Functionality To A Website (With PHP)</title>
		<link>http://www.webresourcesdepot.com/how-to-add-tweeting-with-short-url-functionality-to-a-website-with-php/</link>
		<comments>http://www.webresourcesdepot.com/how-to-add-tweeting-with-short-url-functionality-to-a-website-with-php/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 16:58:00 +0000</pubDate>
		<dc:creator>Umut M.</dc:creator>
				<category><![CDATA[Extras]]></category>
		<category><![CDATA[Goodies]]></category>
		<category><![CDATA[Info]]></category>
		<category><![CDATA[Other License]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[TinyURL]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=851</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1259982&k=ed230295611f656daf3115e6d682ca7d&a=851&c=32648' target='_blank'><img src='http://rss.buysellads.com/img.php?z=1259982&k=ed230295611f656daf3115e6d682ca7d&a=851&c=32648' border='0' alt='' /></a></p><p><a href='http://buysellads.com/buy/sitedetails/pubkey/ed230295611f656daf3115e6d682ca7d/zone/1259982' target='_blank'>Advertise here with BSA</a></p><br />Social bookmarking buttons like Digg, Delicious or StumbleUpon on any website is very familiar. They help spreading the content. Twitter, getting bigger &#38; better, is also another powerful network where content can reach to thousands easily in minutes. To help the readers of a website share/tweet a content at Twitter easily, here is a simple [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1259982&k=ed230295611f656daf3115e6d682ca7d&a=851&c=17606' target='_blank'><img src='http://rss.buysellads.com/img.php?z=1259982&k=ed230295611f656daf3115e6d682ca7d&a=851&c=17606' border='0' alt='' /></a></p><p><a href='http://buysellads.com/buy/sitedetails/pubkey/ed230295611f656daf3115e6d682ca7d/zone/1259982' target='_blank'>Advertise here with BSA</a></p><br /><p><span style="font-weight: bold;">S</span><strong>ocial bookmarking buttons</strong> like Digg, Delicious or StumbleUpon on any website is very familiar. They help <strong>spreading the content</strong>.</p>
<p><strong>Twitter</strong>, getting bigger &amp; better, is also another powerful network where content can reach to thousands easily in minutes.</p>
<p>To help the readers of a website <strong>share/tweet a content</strong> at <strong>Twitter</strong> easily, here is a simple way of integration:</p>
<div class="featured"><strong>Tip:</strong> <a target="_blank" href="http://twitter.com/umutm">Follow <strong>WebResourcesDepot</strong> on Twitter</a> &amp; get more resources!</div>
<p><img height="154" width="480" src="http://www.webresourcesdepot.com/wp-content/uploads/image/twitter-intro.jpg" alt="Twitter" /></p>
<h3>You can send a querystring to Twitter like:</h3>
<p>http://twitter.com/home?status=<strong>Your Tweet</strong>. For example, a tweet link for this post can be:</p>
<p>http://twitter.com/home?status=How To Add Tweeting With Short URL Functionality To A Website (With PHP): <span id="sample-permalink">http://www.webresourcesdepot.com/</span>how-to-add-tweeting-with-short-url-functionality-to-a-website-with-php/</p>
<h3>The problem &amp; the solution:</h3>
<p>There is a 140 character limit in <strong>Twitter</strong> &amp; the length of the URL is a headache. So, <strong>auto-shortening the URL</strong>&nbsp;with a <strong>short URL&nbsp;service</strong> will be handy.</p>
<p><span id="more-851"></span></p>
<p>The <code>file_get_contents</code> function of PHP helps us to easily get the short URL as a string. Lets use the <strong>TinyURL</strong>&nbsp;service &amp; create a simple function:</p>
<p><code>&lt;?php<br />
function makeShortURL($URLToConvert) {&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp; $shortURL= file_get_contents(&quot;http://tinyurl.com/api-create.php?url=&quot; . $URLToConvert);&nbsp; <br />
&nbsp;&nbsp;&nbsp;&nbsp; return $shortURL;&nbsp; <br />
}<br />
?&gt;</code></p>
<p>So, calling the function with the URL, like:</p>
<p><code>&lt;?php echo makeShortURL(&quot;http://www.webresourcesdepot.com/</code><code>how-to-add-tweeting-with-short-url-functionality-to-a-website-with-php/</code><code>&quot;)?&gt;</code></p>
<p>will result in: http://tinyurl.com/arbz2e.</p>
<p>And the link to this post will become:</p>
<p><a target="_blank" href="http://twitter.com/home?status=How To Add Tweeting With Short URL Functionality To A Website (With PHP):http://tinyurl.com/arbz2e">http://twitter.com/home?status=How To Add Tweeting With Short URL Functionality To A Website (With PHP):http://tinyurl.com/arbz2e</a></p>
<h3>For WordPress users:</h3>
<p><img height="140" width="141" align="left" style="margin-right: 5px;" alt="Wordpress Logo" src="http://www.webresourcesdepot.com/wp-content/uploads/image/wordpress-logo.jpg" />WordPress users can add the <code>makeShortURL</code> function to the <strong>functions.php</strong> in the active theme folder.</p>
<p><strong>Important</strong>, make sure you don&#8217;t leave any spaces between other functions &amp; at the bottom of the functions.php file. Else, the RSS feed will have some trouble in creating the XML files.</p>
<p>And, in the <strong>single.php</strong> file, where the posts are displayed, use the line (or update it to your needs) below:</p>
<p><code>&lt;a href=&quot;http://twitter.com/home?status=&lt;?php the_title(); ?&gt;: &lt;?php echo makeShortURL(get_permalink())?&gt;&quot; rel=&quot;nofollow&quot;&gt;Tweet This Post&lt;/a&gt;</code>.</p>
<p>And that&#8217;s all.</p>
<p><strong>Special Downloads:</strong><br />
<a href="http://www.webresourcesdepot.com/?download=jBasket" target="_blank">Ajaxed Add-To-Basket Scenarios With jQuery And PHP</a><br />
<a href="http://www.webresourcesdepot.com/?download=Free-Admin-Template" target="_blank">Free Admin Template For Web Applications</a><br />
<a href="http://www.webresourcesdepot.com/?download=jQuery-Dynamic-Drag-Drop" target="_blank">jQuery Dynamic Drag&#8217;n Drop</a><br />
<a href="http://www.webresourcesdepot.com/?download=sTwitter-1-0" target="_blank">ScheduledTweets</a></p>
<p><strong>Advertisements:</strong><br />
<a href="http://www.admintemplates.com" target="_blank">Professional XHTML Admin Template ($15 Discount With The Code: WRD.)</a><br />
<a href="http://www.xhtmchop.com" target="_blank">Psd to Xhtml</a><br />
<a href="http://www.sslmatic.com" target="_blank">SSLmatic &#8211; Cheap SSL Certificates (from $19.99/year)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webresourcesdepot.com/how-to-add-tweeting-with-short-url-functionality-to-a-website-with-php/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Open Source Image Hosting Script: Chevereto</title>
		<link>http://www.webresourcesdepot.com/open-source-image-hosting-script-chevereto/</link>
		<comments>http://www.webresourcesdepot.com/open-source-image-hosting-script-chevereto/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 07:35:40 +0000</pubDate>
		<dc:creator>Umut M.</dc:creator>
				<category><![CDATA[Extras]]></category>
		<category><![CDATA[GPL License]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[TinyURL]]></category>

		<guid isPermaLink="false">http://www.webresourcesdepot.com/?p=817</guid>
		<description><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1259982&k=ed230295611f656daf3115e6d682ca7d&a=817&c=11565' target='_blank'><img src='http://rss.buysellads.com/img.php?z=1259982&k=ed230295611f656daf3115e6d682ca7d&a=817&c=11565' border='0' alt='' /></a></p><p><a href='http://buysellads.com/buy/sitedetails/pubkey/ed230295611f656daf3115e6d682ca7d/zone/1259982' target='_blank'>Advertise here with BSA</a></p><br />Chevereto is an open source image hosting script that can be used to create such a service with ease. With a very chic interface, the script offers uploading of both local &#38; remote files. And you can choose to resize the image too. Chevereto is integrated with TinyURL too &#38; an user can optionally shorten [...]]]></description>
			<content:encoded><![CDATA[<p><a href='http://rss.buysellads.com/click.php?z=1259982&k=ed230295611f656daf3115e6d682ca7d&a=817&c=23423' target='_blank'><img src='http://rss.buysellads.com/img.php?z=1259982&k=ed230295611f656daf3115e6d682ca7d&a=817&c=23423' border='0' alt='' /></a></p><p><a href='http://buysellads.com/buy/sitedetails/pubkey/ed230295611f656daf3115e6d682ca7d/zone/1259982' target='_blank'>Advertise here with BSA</a></p><br /><p><a target="_blank" href="http://chevereto.com/"><strong>Chevereto</strong></a> is an <strong>open source image hosting script</strong> that can be used to create such a service with ease.</p>
<p>With a very chic interface, the script offers uploading of both local &amp; remote files. And you can choose to <strong>resize the image</strong> too.</p>
<p><a target="_blank" href="Free Image Hosting Script"><img height="124" width="480" alt="Chevereto" src="http://www.webresourcesdepot.com/wp-content/uploads/image/chevereto.jpg" /></a></p>
<p><strong>Chevereto</strong> is integrated with <strong>TinyURL</strong> too &amp; an user can optionally shorten the URL&nbsp;of the hosted image while uploading it.</p>
<p>The script also comes with the documentation which covers creating a <strong>bookmarklet</strong> or a <strong>Firefox extension</strong> &amp; more.</p>
<p>It is built with <strong>PHP</strong> &amp; requires no database to run.</p>
<p><strong>Special Downloads:</strong><br />
<a href="http://www.webresourcesdepot.com/?download=jBasket" target="_blank">Ajaxed Add-To-Basket Scenarios With jQuery And PHP</a><br />
<a href="http://www.webresourcesdepot.com/?download=Free-Admin-Template" target="_blank">Free Admin Template For Web Applications</a><br />
<a href="http://www.webresourcesdepot.com/?download=jQuery-Dynamic-Drag-Drop" target="_blank">jQuery Dynamic Drag&#8217;n Drop</a><br />
<a href="http://www.webresourcesdepot.com/?download=sTwitter-1-0" target="_blank">ScheduledTweets</a></p>
<p><strong>Advertisements:</strong><br />
<a href="http://www.admintemplates.com" target="_blank">Professional XHTML Admin Template ($15 Discount With The Code: WRD.)</a><br />
<a href="http://www.xhtmchop.com" target="_blank">Psd to Xhtml</a><br />
<a href="http://www.sslmatic.com" target="_blank">SSLmatic &#8211; Cheap SSL Certificates (from $19.99/year)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webresourcesdepot.com/open-source-image-hosting-script-chevereto/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using wincache
Page Caching using wincache (User agent is rejected)
Database Caching 6/12 queries in -3.772 seconds using wincache

Served from: www.webresourcesdepot.com @ 2012-02-12 13:25:07 -->
