<?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>Thu, 18 Mar 2010 06:14:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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 Bookmarking]]></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[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 way of [...]]]></description>
			<content:encoded><![CDATA[<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.sslmatic.com" target="_blank">SSLmatic &#8211; Cheap SSL Certificates (from $19.99/year)</a><br />
<a href="http://twitter.com/umutm" target="_blank">Follow WebResourcesDepot At Twitter And Get More Resources!</a></p>

	Tags: <a href="http://www.webresourcesdepot.com/tag/php/" title="Php" rel="tag">Php</a>, <a href="http://www.webresourcesdepot.com/tag/tinyurl/" title="TinyURL" rel="tag">TinyURL</a>, <a href="http://www.webresourcesdepot.com/tag/twitter/" title="Twitter" rel="tag">Twitter</a><br />

	<h4>Related posts</h4>
	<ul class='st-related-posts'>
	<li><a href="http://www.webresourcesdepot.com/scheduledtweets-free-and-fully-ajaxed-php-application-to-schedule-tweets/" title="ScheduledTweets: Free And Fully Ajaxed PHP Application To Schedule Tweets (April 7, 2009)">ScheduledTweets: Free And Fully Ajaxed PHP Application To Schedule Tweets</a></li>
	<li><a href="http://www.webresourcesdepot.com/open-source-php-app-to-display-tweets-of-users-you-follow-twitster/" title="Open Source PHP App. To Display Tweets Of Users You Follow: Twitster (May 25, 2009)">Open Source PHP App. To Display Tweets Of Users You Follow: Twitster</a></li>
	<li><a href="http://www.webresourcesdepot.com/open-source-image-hosting-script-chevereto/" title="Open Source Image Hosting Script: Chevereto (February 23, 2009)">Open Source Image Hosting Script: Chevereto</a></li>
	<li><a href="http://www.webresourcesdepot.com/instant-website-that-displays-content-from-multiple-websitesservices-pubwich/" title="Instant Website That Displays Content From Multiple Feeds/Services: Pubwich (September 1, 2009)">Instant Website That Displays Content From Multiple Feeds/Services: Pubwich</a></li>
	<li><a href="http://www.webresourcesdepot.com/display-tweets-with-phpajax-ptwix/" title="Display Tweets With PHP/Ajax: Ptwix (July 4, 2009)">Display Tweets With PHP/Ajax: Ptwix</a></li>
</ul>

]]></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>10</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[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 the URL&#160;of [...]]]></description>
			<content:encoded><![CDATA[<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.sslmatic.com" target="_blank">SSLmatic &#8211; Cheap SSL Certificates (from $19.99/year)</a><br />
<a href="http://twitter.com/umutm" target="_blank">Follow WebResourcesDepot At Twitter And Get More Resources!</a></p>

	Tags: <a href="http://www.webresourcesdepot.com/tag/php/" title="Php" rel="tag">Php</a>, <a href="http://www.webresourcesdepot.com/tag/tinyurl/" title="TinyURL" rel="tag">TinyURL</a><br />

	<h4>Related posts</h4>
	<ul class='st-related-posts'>
	<li><a href="http://www.webresourcesdepot.com/how-to-add-tweeting-with-short-url-functionality-to-a-website-with-php/" title="How To Add Tweeting With Short URL Functionality To A Website (With PHP) (March 13, 2009)">How To Add Tweeting With Short URL Functionality To A Website (With PHP)</a></li>
	<li><a href="http://www.webresourcesdepot.com/zimplit-easiest-cms-for-simple-websites/" title="Zimplit: Easiest CMS For Simple Websites (August 29, 2008)">Zimplit: Easiest CMS For Simple Websites</a></li>
	<li><a href="http://www.webresourcesdepot.com/wiki-like-project-management-tool-streber/" title="Wiki-Like Project Management Tool: Streber (May 26, 2008)">Wiki-Like Project Management Tool: Streber</a></li>
	<li><a href="http://www.webresourcesdepot.com/web-based-php-ftp-application-phpwebftp/" title="Web-Based PHP FTP Application: phpWebFtp (June 25, 2008)">Web-Based PHP FTP Application: phpWebFtp</a></li>
	<li><a href="http://www.webresourcesdepot.com/web-based-mysql-management-with-only-1-file-adminer/" title="Web-Based MySQL Management With Only 1 File: Adminer (August 17, 2009)">Web-Based MySQL Management With Only 1 File: Adminer</a></li>
</ul>

]]></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>

<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 12/28 queries in 1.370 seconds using disk

Served from: www.webresourcesdepot.com @ 2010-03-19 04:44:30 -->