<?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>burnmind.com &#187; tutorials</title>
	<atom:link href="http://www.burnmind.com/category/howto/feed" rel="self" type="application/rss+xml" />
	<link>http://www.burnmind.com</link>
	<description>useful info to burn into your mind</description>
	<lastBuildDate>Sat, 04 Sep 2010 11:50:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>how to create a simple automatic image rotator using jQuery</title>
		<link>http://www.burnmind.com/howto/how-to-create-a-simple-automatic-image-rotator-using-jquery</link>
		<comments>http://www.burnmind.com/howto/how-to-create-a-simple-automatic-image-rotator-using-jquery#comments</comments>
		<pubDate>Thu, 10 Jun 2010 23:59:44 +0000</pubDate>
		<dc:creator>burNMind</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[image rotator]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.burnmind.com/?p=611</guid>
		<description><![CDATA[Photo by ~FatalBite on deviantART I&#8217;ll explain a simple way to create an automatic image rotator using jQuery. First have a look at the demo page (opens in a new tab) to understand what we&#8217;re trying to accomplish. You can also . In the example, the initial image will be displayed on the left of [...]]]></description>
			<content:encoded><![CDATA[<div class="image"><img title="Rotate II by FatalBite" src="http://www.burnmind.com/wp-content/uploads/2010/06/Rotate_II_by_FatalBite.png" border="0" alt="Rotate II by FatalBite on deviantART" />
<div class="caption">Photo by <a title="~FatalBite on deviantart.com" href="http://fatalbite.deviantart.com/">~FatalBite</a> on <a title="deviantART" href="http://www.deviantart.com/">deviantART</a></div>
</div>
<p>I&#8217;ll explain a simple way to create an automatic image rotator using jQuery. First have a look at the <a href="/tutorials/rotator/" target="_blank">demo page</a> (opens in a new tab) to understand what we&#8217;re trying to accomplish. You can also <a href="http://www.burnmind.com/fbi_server_copy/rotator.zip" title="Downloaded 80 times">download the tutorial’s source code</a>.</p>
<p>In the example, the initial image will be displayed on the left of a paragraph containing some sample text:</p>
<pre class="brush: xml;">
&lt;div id=&quot;test&quot;&gt;
  &lt;img id=&quot;myImage&quot; src=&quot;test1.png&quot; alt=&quot;image test&quot; /&gt;
  &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit...&lt;/p&gt;
&lt;/div&gt;
</pre>
<p>First, we have to store the filenames of our images in an array. We also have to initialise a counter.</p>
<pre class="brush: jscript;">
var images = new Array ('test1.png', 'test2.png', 'test3.png');
var index = 1;
</pre>
<p>The next step is to create the function which will rotate the images. We&#8217;ll call it <em>rotateImage()</em>. At the beginning, the currently displayed image fades out. Then, we load the next image from the <em>images</em> array (the counter we introduced before is being used here) and we fade it in. At the end of the function, we deal with the counter (either increment it, or reset it if all the imaged were displayed).</p>
<pre class="brush: jscript;">
function rotateImage()
{
  $('#myImage').fadeOut('fast', function()
  {
    $(this).attr('src', images[index]);

    $(this).fadeIn('fast', function()
    {
      if (index == images.length-1)
      {
        index = 0;
      }
      else
      {
        index++;
      }
    });
  });
}
</pre>
<p>The last step is to call the <em>rotateImage</em> function repeatedly inside the <em>$(document).ready</em> function using <em>setInterval</em>. In the example, the function <em>rotateImage()</em> is being executed every 2.5 seconds (2500 milliseconds).</p>
<pre class="brush: jscript;">
$(document).ready(function()
{
  setInterval (rotateImage, 2500);
});
</pre>
<p>The complete JavaScript code:</p>
<pre class="brush: jscript;">
var images = new Array ('test1.png', 'test2.png', 'test3.png');
var index = 1;

function rotateImage()
{
  $('#myImage').fadeOut('fast', function()
  {
    $(this).attr('src', images[index]);

    $(this).fadeIn('fast', function()
    {
      if (index == images.length-1)
      {
        index = 0;
      }
      else
      {
        index++;
      }
    });
  });
} 

$(document).ready(function()
{
  setInterval (rotateImage, 2500);
});
</pre>
<p>HTML:</p>
<pre class="brush: xml;">
&lt;div id=&quot;test&quot;&gt;
  &lt;img id=&quot;myImage&quot; src=&quot;test1.png&quot; alt=&quot;image test&quot; /&gt;
  &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit...&lt;/p&gt;
&lt;/div&gt;
</pre>
<p>If you haven&#8217;t done it already, have a look at the <a href="/tutorials/rotator/" target="_blank">demo page</a> (opens in a new tab). You can also <a href="http://www.burnmind.com/fbi_server_copy/rotator.zip" title="Downloaded 80 times">download the tutorial’s source code</a>.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=how+to+create+a+simple+automatic+image+rotator+using+jQuery+-+http://bit.ly/bguMYs&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.burnmind.com/howto/how-to-create-a-simple-automatic-image-rotator-using-jquery&amp;title=how+to+create+a+simple+automatic+image+rotator+using+jQuery" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.burnmind.com/howto/how-to-create-a-simple-automatic-image-rotator-using-jquery&amp;title=how+to+create+a+simple+automatic+image+rotator+using+jQuery" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.burnmind.com/howto/how-to-create-a-simple-automatic-image-rotator-using-jquery&amp;title=how+to+create+a+simple+automatic+image+rotator+using+jQuery" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.burnmind.com/howto/how-to-create-a-simple-automatic-image-rotator-using-jquery&amp;title=how+to+create+a+simple+automatic+image+rotator+using+jQuery" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.burnmind.com/howto/how-to-create-a-simple-automatic-image-rotator-using-jquery&amp;t=how+to+create+a+simple+automatic+image+rotator+using+jQuery" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.burnmind.com/howto/how-to-create-a-simple-automatic-image-rotator-using-jquery/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>how to display your flickr photos using php</title>
		<link>http://www.burnmind.com/howto/how-to-display-your-flickr-photos-using-php</link>
		<comments>http://www.burnmind.com/howto/how-to-display-your-flickr-photos-using-php#comments</comments>
		<pubDate>Wed, 11 Nov 2009 21:46:12 +0000</pubDate>
		<dc:creator>burNMind</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpflickr]]></category>

		<guid isPermaLink="false">http://www.burnmind.com/?p=399</guid>
		<description><![CDATA[Photo by ~toxictwo on deviantART In order to complete this tutorial you will need to apply for a flickr API key. You will also need to download a copy of phpFlickr API Kit. The use of an API Kit makes the use of flickr&#8217;s API methods easier. You can also view the demo page of [...]]]></description>
			<content:encoded><![CDATA[<div class="image">
<img title="A Division of Me" src="http://www.burnmind.com/wp-content/uploads/2009/11/A_Division_of_Me__by_toxictwo.jpg" border="0" alt="A Division of Me by toxictwo on deviantART" />
<div class="caption">Photo by <a title="~toxictwo on deviantart.com" href="http://toxictwo.deviantart.com/" target="_blank">~toxictwo</a> on <a title="deviantART" href="http://www.deviantart.com/" target="_blank">deviantART</a></div>
</div>
<p>In order to complete this tutorial you will need to <a title="apply for a flickr API key" href="http://www.flickr.com/services/api/keys/apply/" target="_blank">apply for a flickr API key</a>. You will also need to <a title="download a copy of phpFlickr" href="http://code.google.com/p/phpflickr/downloads/list" target="_blank">download a copy</a> of <a title="phpFlickr homepage" href="http://www.phpflickr.com/" target="_blank">phpFlickr</a> API Kit. The use of an API Kit makes the use of flickr&#8217;s API methods easier. You can also <a title="view the demo of the tutorial" href="http://www.burnmind.com/tutorials/flickr/" target="_blank">view the demo page</a> of the tutorial (opens in a new tab).</p>
<p>Let&#8217;s begin. First, we need to include the phpFlickr main file and then create a new phpFlickr object which is stored in the <em>$phpFlickrObj</em> variable. Make sure you enter the correct path (where you extracted the phpFlickr files) and also enter your flickr API key.</p>
<pre class="brush: php;">
require_once(&quot;phpFlickr/phpFlickr.php&quot;);
$phpFlickrObj = new phpFlickr('Your_Flickr_API_Key');
</pre>
<p>The next step is to obtain your NSID by using your flickr username (in the example I&#8217;m using my flickr username), which is stored in the <em>$user</em> variable. Using this NSID, we get the url to the specific user&#8217;s photos and we store it in the <em>$user_url</em> variable. Finally, we get an array (<em>$photos</em>) containing all the relevant information (id, title, etc.) of the last four (if you want to change the number of photos, just change the number) photos appearing in the user&#8217;s photostream.</p>
<pre class="brush: php;">
$user = $phpFlickrObj-&gt;people_findByUsername('stathisg');
$user_url = $phpFlickrObj-&gt;urls_getUserPhotos($user['id']);
$photos = $phpFlickrObj-&gt;people_getPublicPhotos($user['id'], NULL, NULL, 4);
</pre>
<p>In this example we use only the id and the title of each photo. If you want to view all the information contained in the array, you can use <em>print_r($photos)</em>.</p>
<p>The final step to display the photos, is to convert the multidimensional array into an array of one dimension and use a loop to display everything. The following code, displays the photos. The photos can be displayed in six different sizes. To change the size, you need to alter the &#8220;square&#8221; value. The available sizes are: square, thumbnail, small, medium, large and original.</p>
<pre class="brush: php;">
foreach ($photos['photos']['photo'] as $photo)
{
  echo '&lt;a href=&quot;'.$user_url.$photo['id'].'&quot; title=&quot;'.$photo['title'].' (on Flickr)&quot; target=&quot;_blank&quot;&gt;';
  echo '&lt;img alt=&quot;'.$photo['title'].'&quot; src=&quot;'.$phpFlickrObj-&gt;buildPhotoURL($photo, &quot;square&quot;).'&quot; /&gt;';
  echo '&lt;/a&gt;';
}
</pre>
<p>The complete code is diplayed below. You can also <a title="view the demo of the tutorial" href="http://www.burnmind.com/tutorials/flickr/" target="_blank">view the demo page</a> of the tutorial (opens in a new tab).</p>
<pre class="brush: php;">
require_once(&quot;phpFlickr/phpFlickr.php&quot;);
$phpFlickrObj = new phpFlickr('46dea5f6abb12aed7a823adb7ecf5816');

$user = $phpFlickrObj-&gt;people_findByUsername('stathisg');
$user_url = $phpFlickrObj-&gt;urls_getUserPhotos($user['id']);
$photos = $phpFlickrObj-&gt;people_getPublicPhotos($user['id'], NULL, NULL, 4);

foreach ($photos['photos']['photo'] as $photo)
{
  echo '&lt;a href=&quot;'.$user_url.$photo['id'].'&quot; title=&quot;'.$photo['title'].' (on Flickr)&quot; target=&quot;_blank&quot;&gt;';
  echo '&lt;img alt=&quot;'.$photo['title'].'&quot; src=&quot;'.$phpFlickrObj-&gt;buildPhotoURL($photo, &quot;square&quot;).'&quot; /&gt;';
  echo '&lt;/a&gt;';
}
</pre>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=how+to+display+your+flickr+photos+using+php+-+http://bit.ly/104NKw&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.burnmind.com/howto/how-to-display-your-flickr-photos-using-php&amp;title=how+to+display+your+flickr+photos+using+php" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.burnmind.com/howto/how-to-display-your-flickr-photos-using-php&amp;title=how+to+display+your+flickr+photos+using+php" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.burnmind.com/howto/how-to-display-your-flickr-photos-using-php&amp;title=how+to+display+your+flickr+photos+using+php" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.burnmind.com/howto/how-to-display-your-flickr-photos-using-php&amp;title=how+to+display+your+flickr+photos+using+php" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.burnmind.com/howto/how-to-display-your-flickr-photos-using-php&amp;t=how+to+display+your+flickr+photos+using+php" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.burnmind.com/howto/how-to-display-your-flickr-photos-using-php/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>how to convert twitter mentions and URLs to active links using regular expressions in php</title>
		<link>http://www.burnmind.com/howto/how-to-convert-twitter-mentions-and-urls-to-active-links-using-regular-expressions-in-php</link>
		<comments>http://www.burnmind.com/howto/how-to-convert-twitter-mentions-and-urls-to-active-links-using-regular-expressions-in-php#comments</comments>
		<pubDate>Thu, 24 Sep 2009 01:23:37 +0000</pubDate>
		<dc:creator>burNMind</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[active link]]></category>
		<category><![CDATA[mention]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[regular expressions]]></category>
		<category><![CDATA[tweet]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.burnmind.com/?p=382</guid>
		<description><![CDATA[Creation by ~dhuse on deviantART If you are using twitter&#8217;s API to display your tweets in your Website you have probably faced the problem that your mentions (e.g. @burnmind) and URLs are displayed as plain text and not as active links. You can fix this in a very easy way, using regular expressions in php. [...]]]></description>
			<content:encoded><![CDATA[<div class="image"><img title="Twitter style bird by dhuse" src="http://www.burnmind.com/wp-content/uploads/2009/09/Twitter_style_bird_by_dhuse.jpg" border="0" alt="Twitter style bird by dhuse on deviantART" width="200" height="181" /></p>
<div class="caption">Creation by <a title="~dhuse on deviantart.com" href="http://dhuse.deviantart.com/" target="_blank">~dhuse</a> on <a title="deviantART" href="http://www.deviantart.com/" target="_blank">deviantART</a></div>
</div>
<p>If you are using twitter&#8217;s API to display your tweets in your Website you have probably faced the problem that your mentions (e.g. @burnmind) and URLs are displayed as plain text and not as active links. You can fix this in a very easy way, using regular expressions in php.</p>
<p>Assuming that you have stored your tweet in the variable named <em>$tweet</em>, you&#8217;ll only need the following two lines of code to convert the mentions and URLs to links:</p>
<pre class="brush: php;">
$tweet = preg_replace(&quot;/((http)+(s)?:\/\/[^&lt;&gt;\s]+)/i&quot;, &quot;&lt;a href=\&quot;\&#92;&#48;\&quot; target=\&quot;_blank\&quot;&gt;\&#92;&#48;&lt;/a&gt;&quot;, $tweet );
$tweet = preg_replace(&quot;/[@]+([A-Za-z0-9-_]+)/&quot;, &quot;&lt;a href=\&quot;http://twitter.com/\\1\&quot; target=\&quot;_blank\&quot;&gt;\&#92;&#48;&lt;/a&gt;&quot;, $tweet );
</pre>
<p>If you don&#8217;t know how to retrieve your tweet using the twitter&#8217;s API you can learn how by reading the following tutorials:</p>
<p><a href="http://www.burnmind.com/howto/how-to-retrieve-and-display-your-latest-tweet-using-php">how to retrieve and display your latest tweet using PHP</a><br />
<a href="http://www.burnmind.com/howto/how-to-store-and-retrieve-your-latest-tweet-from-an-xml-file">how to store and retrieve your latest tweet from an XML file</a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=how+to+convert+twitter+mentions+and+URLs+to+active+links+using+regular+expressio%5B..%5D+-+http://bit.ly/2nM6Ig&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.burnmind.com/howto/how-to-convert-twitter-mentions-and-urls-to-active-links-using-regular-expressions-in-php&amp;title=how+to+convert+twitter+mentions+and+URLs+to+active+links+using+regular+expressions+in+php" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.burnmind.com/howto/how-to-convert-twitter-mentions-and-urls-to-active-links-using-regular-expressions-in-php&amp;title=how+to+convert+twitter+mentions+and+URLs+to+active+links+using+regular+expressions+in+php" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.burnmind.com/howto/how-to-convert-twitter-mentions-and-urls-to-active-links-using-regular-expressions-in-php&amp;title=how+to+convert+twitter+mentions+and+URLs+to+active+links+using+regular+expressions+in+php" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.burnmind.com/howto/how-to-convert-twitter-mentions-and-urls-to-active-links-using-regular-expressions-in-php&amp;title=how+to+convert+twitter+mentions+and+URLs+to+active+links+using+regular+expressions+in+php" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.burnmind.com/howto/how-to-convert-twitter-mentions-and-urls-to-active-links-using-regular-expressions-in-php&amp;t=how+to+convert+twitter+mentions+and+URLs+to+active+links+using+regular+expressions+in+php" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.burnmind.com/howto/how-to-convert-twitter-mentions-and-urls-to-active-links-using-regular-expressions-in-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to store and retrieve your latest tweet from an XML file</title>
		<link>http://www.burnmind.com/howto/how-to-store-and-retrieve-your-latest-tweet-from-an-xml-file</link>
		<comments>http://www.burnmind.com/howto/how-to-store-and-retrieve-your-latest-tweet-from-an-xml-file#comments</comments>
		<pubDate>Tue, 15 Sep 2009 03:14:07 +0000</pubDate>
		<dc:creator>burNMind</dc:creator>
				<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://www.burnmind.com/?p=348</guid>
		<description><![CDATA[Photo by ~basia-hs on deviantART Retrieving and displaying a tweet using the twitter API in real-time as discussed in &#8220;how to retrieve and display your latest tweet using PHP&#8221; can sometimes produce errors due to twitter&#8217;s inability to handle a lot of simultaneous request from multiple users. To deal with that, you can store the [...]]]></description>
			<content:encoded><![CDATA[<div class="image"><img title="felt twitter bird by basia-hs" src="http://www.burnmind.com/wp-content/uploads/2009/09/felt_twitter_by_basia_hs.jpg" border="0" alt="felt twitter bird by basia-hs on deviantART" width="300" height="270" />
<div class="caption">Photo by <a title="~basia-hs on deviantart.com" href="http://basia-hs.deviantart.com/" target="_blank">~basia-hs</a> on <a title="deviantART" href="http://www.deviantart.com/" target="_blank">deviantART</a></div>
</div>
<p>Retrieving and displaying a tweet using the twitter API in real-time as discussed in &#8220;<a title="how to retrieve and display your latest tweet using PHP" href="http://www.burnmind.com/howto/how-to-retrieve-and-display-your-latest-tweet-using-php" target="_self">how to retrieve and display your latest tweet using PHP</a>&#8221; can sometimes produce errors due to twitter&#8217;s inability to handle a lot of simultaneous request from multiple users. To deal with that, you can store the tweet in an XML file and retrieve it from there, so you don&#8217;t have to rely on twitter&#8217;s availability. This way is more efficient and will improve the loading time of the page.</p>
<p>First, you need to create a file named <em>loadtweet.php</em> which will load the latest tweet the usual way, will perform a check to find out if the result is an actual tweet and not an error message by computing the tweet&#8217;s length (it must have a maximum length of 140 characters) and will finally save the whole respond to an XML file called <em>tweet.xml</em>:</p>
<pre class="brush: php;">
$twitter_url = 'http://twitter.com/statuses/user_timeline/yourTwitterUserName.xml?count=1';
$buffer = file_get_contents($twitter_url);

$xml = new SimpleXMLElement($buffer);
$status_item = $xml -&gt; status;
$status =  $status_item -&gt; text;
$length = strlen($status);

if ($length &lt; 141)
{
$file = fopen(&quot;tweet.xml&quot;, &quot;w&quot;);
fwrite($file, $buffer);
fclose($file);
}
</pre>
<p>Your Web Server can be scheduled to execute this file automatically, for example every one minute, using a <a title="Cron @ Wikipedia" href="http://en.wikipedia.org/wiki/Cron" target="_blank">Cron Job</a> (reffer to your Web Server&#8217;s Control Panel or your Hosting Company to find out how to schedule a Cron Job).</p>
<p>To retrieve the tweet from the XML file and display it wherever you want in your page, use the following code:</p>
<pre class="brush: php;">
$xml = simplexml_load_file(&quot;tweet.xml&quot;);
$status_item = $xml -&gt; status;
$status =  $status_item -&gt; text;
echo $status;
</pre>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=how+to+store+and+retrieve+your+latest+tweet+from+an+XML+file+-+http://bit.ly/A0qMS&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.burnmind.com/howto/how-to-store-and-retrieve-your-latest-tweet-from-an-xml-file&amp;title=how+to+store+and+retrieve+your+latest+tweet+from+an+XML+file" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.burnmind.com/howto/how-to-store-and-retrieve-your-latest-tweet-from-an-xml-file&amp;title=how+to+store+and+retrieve+your+latest+tweet+from+an+XML+file" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.burnmind.com/howto/how-to-store-and-retrieve-your-latest-tweet-from-an-xml-file&amp;title=how+to+store+and+retrieve+your+latest+tweet+from+an+XML+file" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.burnmind.com/howto/how-to-store-and-retrieve-your-latest-tweet-from-an-xml-file&amp;title=how+to+store+and+retrieve+your+latest+tweet+from+an+XML+file" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.burnmind.com/howto/how-to-store-and-retrieve-your-latest-tweet-from-an-xml-file&amp;t=how+to+store+and+retrieve+your+latest+tweet+from+an+XML+file" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.burnmind.com/howto/how-to-store-and-retrieve-your-latest-tweet-from-an-xml-file/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>how to retrieve and display your latest tweet using PHP</title>
		<link>http://www.burnmind.com/howto/how-to-retrieve-and-display-your-latest-tweet-using-php</link>
		<comments>http://www.burnmind.com/howto/how-to-retrieve-and-display-your-latest-tweet-using-php#comments</comments>
		<pubDate>Sun, 06 Sep 2009 19:55:28 +0000</pubDate>
		<dc:creator>burNMind</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[retrieve]]></category>
		<category><![CDATA[simplexml]]></category>
		<category><![CDATA[tweet]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.burnmind.com/?p=332</guid>
		<description><![CDATA[Creation by ~jasonh1234 on deviantART Retrieving your latest tweet from twitter is a very simple process. First, you need to request your latest tweet from twitter using its API and then parse the xml response and select your tweet. It&#8217;s much simpler than it sounds! It&#8217;s a useful bit of code to use on your [...]]]></description>
			<content:encoded><![CDATA[<div class="image"><img title="Twitter 5 by jasonh1234" src="http://www.burnmind.com/wp-content/uploads/2009/09/Twitter_5_by_jasonh1234.jpg" border="0" alt="Twitter 5 by jasonh1234 on deviantART" width="300" height="300" />
<div class="caption">Creation by <a title="~jasonh1234 on deviantart.com" href="http://jasonh1234.deviantart.com/" target="_blank">~jasonh1234</a> on <a title="deviantART" href="http://www.deviantart.com/" target="_blank">deviantART</a></div>
</div>
<p>Retrieving your latest tweet from twitter is a very simple process. First, you need to request your latest tweet from twitter using its API and then parse the xml response and select your tweet. It&#8217;s much simpler than it sounds!</p>
<p>It&#8217;s a useful bit of code to use on your site, and allows people to see whether you&#8217;re working, <a href="http://www.foxybingo.com/">playing online bingo</a> or out on the town without going through the motions of manually accessing your twitter page whilst browsing your site content. </p>
<p>You can request your latest tweet from twitter just by using a simple URL: <em>http://twitter.com/statuses/user_timeline/YourUserName.xml?count=1</em>. By replacing <em>YourUserName </em>with your twitter username, you&#8217;ll get an xml file containing your latest tweet (you can request more tweets by changing the &#8220;<em>count=1</em>&#8221; with the appropriate number of tweets) along with some information about your profile.</p>
<p>Using the following PHP code, you&#8217;ll get the content of the xml response to the <em>$buffer</em> variable:</p>
<pre class="brush: php;">
$twitter_url = 'http://twitter.com/statuses/user_timeline/burnmind.xml?count=1';
$buffer = file_get_contents($twitter_url);
</pre>
<p>Now that you have the xml content, you just need to parse it so you can retrieve your tweet. Using <a title="SimpleXML PHP Extension" href="http://www.php.net/simplexml" target="_blank">SimpleXML</a>, which is a PHP extension that allows users to easily manipulate/use XML data, the content is converted to a set of nodes. The <em>$status</em> variable holds the &#8220;<em>status</em>&#8221; node and then the <em>$tweet</em> variable gets the child-node named <em>text</em>, which is your tweet. Finally, the tweet is displayed using the <em>echo </em>command.</p>
<pre class="brush: php;">
$xml = new SimpleXMLElement($buffer);
$status = $xml -&gt; status;
$tweet =  $status -&gt; text;
echo $tweet;
</pre>
<p>Simple, right?</p>
<p>You can also use an alternative way: <a title="how to store and retrieve your latest tweet from an XML file" href="http://www.burnmind.com/howto/how-to-store-and-retrieve-your-latest-tweet-from-an-xml-file" target="_self">how to store and retrieve your latest tweet from an XML file</a></p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=how+to+retrieve+and+display+your+latest+tweet+using+PHP+-+http://bit.ly/2uV2WR&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.burnmind.com/howto/how-to-retrieve-and-display-your-latest-tweet-using-php&amp;title=how+to+retrieve+and+display+your+latest+tweet+using+PHP" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.burnmind.com/howto/how-to-retrieve-and-display-your-latest-tweet-using-php&amp;title=how+to+retrieve+and+display+your+latest+tweet+using+PHP" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.burnmind.com/howto/how-to-retrieve-and-display-your-latest-tweet-using-php&amp;title=how+to+retrieve+and+display+your+latest+tweet+using+PHP" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.burnmind.com/howto/how-to-retrieve-and-display-your-latest-tweet-using-php&amp;title=how+to+retrieve+and+display+your+latest+tweet+using+PHP" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.burnmind.com/howto/how-to-retrieve-and-display-your-latest-tweet-using-php&amp;t=how+to+retrieve+and+display+your+latest+tweet+using+PHP" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.burnmind.com/howto/how-to-retrieve-and-display-your-latest-tweet-using-php/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>how to create a Typing Effect, an Eraser Effect and a Blinking Cursor using jQuery</title>
		<link>http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery</link>
		<comments>http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery#comments</comments>
		<pubDate>Fri, 28 Aug 2009 17:49:55 +0000</pubDate>
		<dc:creator>burNMind</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[blinking]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[cursor]]></category>
		<category><![CDATA[effect]]></category>
		<category><![CDATA[eraser]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[typing]]></category>

		<guid isPermaLink="false">http://www.burnmind.com/?p=290</guid>
		<description><![CDATA[Photo by ~Lily-D-Ray on deviantART First have a look at the demo page (opens in a new tab) to understand what we&#8217;re trying to accomplish. You can also . For the blinking cursor effect, we&#8217;re going to simulate a DOS prompt. The CSS code of the tutorial is very simple. We just have to align [...]]]></description>
			<content:encoded><![CDATA[<div class="image"><img title="Typer by Lily-D-Ray" src="http://www.burnmind.com/wp-content/uploads/2009/08/Typer_by_Lily_D_Ray.jpg" border="0" alt="Typer by Lily-D-Ray on deviantART" />
<div class="caption">Photo by <a title="~Lily-D-Ray on deviantart.com" href="http://Lily-D-Ray.deviantart.com/" target="_blank">~Lily-D-Ray</a> on <a title="deviantART" href="http://www.deviantart.com/" target="_blank">deviantART</a></div>
</div>
<p>First have a look at the <a href="/tutorials/typing/" target="_blank">demo page</a> (opens in a new tab) to understand what we&#8217;re trying to accomplish. You can also <a href="http://www.burnmind.com/fbi_server_copy/typing.zip" title="Downloaded 133 times">download the tutorial’s source code</a>.</p>
<p>For the blinking cursor effect, we&#8217;re going to simulate a DOS prompt. The CSS code of the tutorial is very simple. We just have to align all the paragraphs that will include the text parts in one line:</p>
<p>p<br />
{<br />
 float: left;<br />
}</p>
<p>The HTML code includes one paragraph that contains the characters &#8220;C:\&#8221; (the DOS prompt) and another paragraph named cursor that contains the &#8220;|&#8221; character, our cursor:</p>
<pre class="brush: xml;">
&lt;p&gt;C:\&lt;/p&gt;&lt;p class=&quot;cursor&quot;&gt;|&lt;/p&gt;
</pre>
<p>To make the cursor blink, we will create a Javascript function named <em>cursorAnimation()</em>. Using jQuery&#8217;s <em>animate()</em> function we first make the cursor disappear setting its opacity setting to 0% and then appear again setting its opacity setting to 100%:</p>
<pre class="brush: jscript;">
function cursorAnimation()
{
  $(&quot;p.cursor&quot;).animate(
  {
    opacity: 0
  }, &quot;fast&quot;, &quot;swing&quot;).animate(
  {
    opacity: 1
  }, &quot;fast&quot;, &quot;swing&quot;);
}
</pre>
<p>We want this function to run continuously from the loading of the page, so we&#8217;re going to use the jQuery&#8217;s <em>$(document).ready()</em> function along with the <em>setInterval()</em> method that calls a function at specified intervals (in milliseconds):</p>
<pre class="brush: jscript;">
$(document).ready(function()
{
  setInterval ( &quot;cursorAnimation()&quot;, 600 );
});
</pre>
<p>Now that we have the blinking cursor we&#8217;re going to create the typing effect (based on <a href="http://return-true.com/2008/06/using-jquery-to-make-the-classic-typewriter-effect/" title="Using jQuery To Make The Classic Typewriter Effect">this</a> tutorial). First, we have to alter our HTML code. We will include a paragraph called caption, a textbox so we can write our preferred caption in there and a button to test the typing effect:</p>
<pre class="brush: xml;">
&lt;input type=&quot;text&quot; id=&quot;userCaption&quot; value=&quot;Type something here!&quot; /&gt;
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Test Typing Effect&quot; onclick=&quot;testTypingEffect()&quot;/&gt;
&lt;p&gt;C:\&lt;/p&gt;&lt;p class=&quot;caption&quot;&gt;&lt;/p&gt;&lt;p class=&quot;cursor&quot;&gt;|&lt;/p&gt;
</pre>
<p>First, we define the variables <em>captionLength</em> and <em>caption</em>. When pressed, the button calls the <em>testTypingEffect()</em> function, that sets the textbox&#8217;s value to the caption variable and then calls the <em>type()</em> function. The <em>type()</em> function uses the <em>substr()</em> method to cut our preferred caption one letter forward each time it&#8217;s called and type it inside the paragraph named caption. Until all the letters of the caption are typed, the <em>type()</em> function calls itself with a delay of 50 milliseconds using the <em>setTimeout()</em> method.</p>
<pre class="brush: jscript;">
var captionLength = 0;
var caption = &quot;&quot;;

function testTypingEffect()
{
  caption = $(&quot;input#userCaption&quot;).val();
  type();
}

function type()
{
  $('p.caption').html(caption.substr(0, captionLength++));
  if(captionLength &lt; caption.length+1)
  {
    setTimeout(&quot;type()&quot;, 50);
  }
  else
  {
    captionLength = 0;
    caption = &quot;&quot;;
  }
}
</pre>
<p>For the eraser effect, we will alter again the html code adding another button which when pressed will call the <em>testErasingEffect()</em> function:</p>
<pre class="brush: xml;">
&lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Test Erasing Effect&quot; onclick=&quot;testErasingEffect()&quot;/&gt;
</pre>
<p>To create the eraser effect, we&#8217;ll create the reversed process. The <em>testErasingEffect()</em> function sets the caption paragraph&#8217;s content to the caption variable and then computes its length. If there isn&#8217;t any content, it types automatically sample content (just for testing reasons) and calls itself. Now that it has a content, it calls the <em>erase()</em> function which cuts letter-by-letter the caption until it&#8217;s all gone with a delay of 50 milliseconds.</p>
<pre class="brush: jscript;">
function testErasingEffect()
{
  caption = $(&quot;p.caption&quot;).html();
  captionLength = caption.length;
  if (captionLength&gt;0)
  {
    erase();
  }
  else
  {
    $('p.caption').html(&quot;You didn't write anything to erase, but ok!&quot;);
    setTimeout(&quot;testErasingEffect()&quot;, 1000);
  }
}

function erase()
{
  $('p.caption').html(caption.substr(0, captionLength--));
  if(captionLength &gt;= 0)
  {
    setTimeout(&quot;erase()&quot;, 50);
  }
  else
  {
    captionLength = 0;
    caption = &quot;&quot;;
  }
}
</pre>
<p>If you haven&#8217;t done it already, have a look at the <a href="/tutorials/typing/" target="_blank">demo page</a> (opens in a new tab) to test the effects. You can also <a href="http://www.burnmind.com/fbi_server_copy/typing.zip" title="Downloaded 133 times">download the tutorial’s source code</a>.</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=how+to+create+a+Typing+Effect%2C+an+Eraser+Effect+and+a+Blinking+Cursor+using+jQue%5B..%5D+-+http://bit.ly/14K6eL&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery&amp;title=how+to+create+a+Typing+Effect%2C+an+Eraser+Effect+and+a+Blinking+Cursor+using+jQuery" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery&amp;title=how+to+create+a+Typing+Effect%2C+an+Eraser+Effect+and+a+Blinking+Cursor+using+jQuery" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery&amp;title=how+to+create+a+Typing+Effect%2C+an+Eraser+Effect+and+a+Blinking+Cursor+using+jQuery" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery&amp;title=how+to+create+a+Typing+Effect%2C+an+Eraser+Effect+and+a+Blinking+Cursor+using+jQuery" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery&amp;t=how+to+create+a+Typing+Effect%2C+an+Eraser+Effect+and+a+Blinking+Cursor+using+jQuery" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.burnmind.com/howto/how-to-create-a-typing-effect-an-eraser-effect-and-a-blinking-cursor-using-jquery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to create and add a favicon in WordPress using Photoshop</title>
		<link>http://www.burnmind.com/howto/how-to-create-and-add-a-favicon-in-wordpress-using-photoshop</link>
		<comments>http://www.burnmind.com/howto/how-to-create-and-add-a-favicon-in-wordpress-using-photoshop#comments</comments>
		<pubDate>Wed, 27 May 2009 12:55:41 +0000</pubDate>
		<dc:creator>burNMind</dc:creator>
				<category><![CDATA[tutorials]]></category>
		<category><![CDATA[.ico]]></category>
		<category><![CDATA[favicon]]></category>
		<category><![CDATA[photoshop]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.burnmind.com/?p=238</guid>
		<description><![CDATA[As described in the relevant wikipedia article, a favicon (short for favorite icon, sometimes understood as favorites icon), also known as a website icon, shortcut icon, url icon, or bookmark icon is a 16&#215;16 pixel square icon associated with a particular website. The browsers that provide favicon support typically display a page&#8217;s favicon in the [...]]]></description>
			<content:encoded><![CDATA[<p>As described in the relevant <a title="favicon@wikipedia" href="http://en.wikipedia.org/wiki/Favicon" target="_blank">wikipedia article</a>, a favicon (short for favorite icon, sometimes understood as favorites icon), also known as a website icon, shortcut icon, url icon, or bookmark icon is a 16&#215;16 pixel square icon associated with a particular website. The browsers that provide favicon support typically display a page&#8217;s favicon in the browser&#8217;s Address bar and next to the page&#8217;s title on a tab.</p>
<p>We&#8217;re going to create our favicon example, using Photoshop CS3. The favicon needs to be in .ico format and since Photoshop doesn&#8217;t have a build-in way of saving an image in .ico format, you have to download this freeware plugin from <a title="Photoshop .ico plugin" href="http://www.telegraphics.com.au/sw/#icoformat" target="_blank">Telegraphics</a> (supports all versions of Photoshop). After downloading the plugin, you need to place the .8bi file in Photoshop&#8217;s plugins folder and restart Photoshop (if already open).</p>
<p>In Photoshop, create a new 16&#215;16 RGB 8-bit image. There is the option to resize an existing image or to create a new one pixel by pixel. As an example, i created pixel by pixel an &#8220;E&#8221; character using the pencil tool.</p>
<div class="imgCenter"><img title="favicon example" src="http://www.burnmind.com/wp-content/uploads/2009/05/fav.png" alt="favicon example" width="101" height="103" /></div>
<p>When you&#8217;re done, save the file as favicon.ico and upload it to your root WordPress folder. If you are not using WordPress, upload it wherever you want.</p>
<div class="imgCenter"><img title="save as .ico" src="http://www.burnmind.com/wp-content/uploads/2009/05/save.png" alt="save as .ico" width="510" height="175" /></div>
<p>To use it, insert the following code in the head tag of every page that you want to display the favicon. If you are not using WordPress, make sure that the path to the image corresponds to the uploaded directory.</p>
<p>The most common way is</p>
<pre class="brush: xml;">
&lt;head&gt;
[...]
&lt;link rel=&quot;shortcut icon&quot; href=&quot;favicon.ico&quot; type=&quot;image/x-icon&quot; /&gt;
[...]
&lt;/head&gt;
</pre>
<p>while the <a title="how to favicon @ W3C" href="http://www.w3.org/2005/10/howto-favicon" target="_blank">W3C </a>way is</p>
<pre class="brush: xml;">
&lt;head&gt;
[...]
&lt;link rel=&quot;icon&quot;
type=&quot;image/png&quot;
href=&quot;favicon.ico&quot; /&gt;
[...]
&lt;head&gt;
</pre>
<p>As far as i know, both ways work correct in every browser that displays favicons. Here&#8217;s an example of how the example favicon looks on a firefox tab:</p>
<div class="imgCenter"><img title="favicon@firefox tab " src="http://www.burnmind.com/wp-content/uploads/2009/05/example1.png" alt="favicon@firefox tab " width="177" height="26" /></div>
<p>Enjoy!</p>


<div class="shr-bookmarks shr-bookmarks-expand shr-bookmarks-center">
<ul class="socials">
		<li class="shr-twitter">
			<a href="http://twitter.com/home?status=how+to+create+and+add+a+favicon+in+Wordpress+using+Photoshop+-+http://bit.ly/bfuYAr&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="shr-delicious">
			<a href="http://delicious.com/post?url=http://www.burnmind.com/howto/how-to-create-and-add-a-favicon-in-wordpress-using-photoshop&amp;title=how+to+create+and+add+a+favicon+in+Wordpress+using+Photoshop" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="shr-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.burnmind.com/howto/how-to-create-and-add-a-favicon-in-wordpress-using-photoshop&amp;title=how+to+create+and+add+a+favicon+in+Wordpress+using+Photoshop" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="shr-reddit">
			<a href="http://reddit.com/submit?url=http://www.burnmind.com/howto/how-to-create-and-add-a-favicon-in-wordpress-using-photoshop&amp;title=how+to+create+and+add+a+favicon+in+Wordpress+using+Photoshop" rel="nofollow" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="shr-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.burnmind.com/howto/how-to-create-and-add-a-favicon-in-wordpress-using-photoshop&amp;title=how+to+create+and+add+a+favicon+in+Wordpress+using+Photoshop" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="shr-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.burnmind.com/howto/how-to-create-and-add-a-favicon-in-wordpress-using-photoshop&amp;t=how+to+create+and+add+a+favicon+in+Wordpress+using+Photoshop" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>

]]></content:encoded>
			<wfw:commentRss>http://www.burnmind.com/howto/how-to-create-and-add-a-favicon-in-wordpress-using-photoshop/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
