<?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>How To PHP - PHP Technology, PHP Tutorial, Database Tutorials, CMS System &#187; om</title>
	<atom:link href="http://www.phpmind.com/blog/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phpmind.com/blog</link>
	<description>Future of web development</description>
	<lastBuildDate>Tue, 25 Oct 2011 21:38:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Boost your website performance with &#8220;Page Speed&#8221; tool.</title>
		<link>http://www.phpmind.com/blog/2011/10/boost-your-website-performance-with-page-speed-tool/</link>
		<comments>http://www.phpmind.com/blog/2011/10/boost-your-website-performance-with-page-speed-tool/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 21:30:01 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1095</guid>
		<description><![CDATA[Page Speed is a family of tools for optimizing the performance of web pages. The Page Speed browser extensions, available for Chrome and Firefox, allow you to evaluate the performance of your web pages and to get suggestions on how to improve them. Page Speed Tool Download]]></description>
			<content:encoded><![CDATA[<p>Page Speed is a family of tools for optimizing the performance of web pages.<br />
The Page Speed browser extensions, available for Chrome and Firefox, allow you to evaluate the performance of your web pages and to get suggestions on how to improve them.<br />
<a href="http://code.google.com/speed/page-speed/download.html" title="Page Speed Tool Download" target="_blank">Page Speed Tool Download</a></p>
<p><object width="640" height="360"><param name="movie" value="http://www.youtube.com/v/_MuVoabSLeY&#038;hl=en_US&#038;feature=player_embedded&#038;version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/_MuVoabSLeY&#038;hl=en_US&#038;feature=player_embedded&#038;version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="360"></embed></object></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F10%2Fboost-your-website-performance-with-page-speed-tool%2F&amp;title=Boost%20your%20website%20performance%20with%20%26%238220%3BPage%20Speed%26%238221%3B%20tool." id="wpa2a_2"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/10/boost-your-website-performance-with-page-speed-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Development With HTML5</title>
		<link>http://www.phpmind.com/blog/2011/09/development-with-html5/</link>
		<comments>http://www.phpmind.com/blog/2011/09/development-with-html5/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 20:21:31 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1093</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe width="560" height="315" src="http://www.youtube.com/embed/BatqHLWy5NE" frameborder="0" allowfullscreen></iframe></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F09%2Fdevelopment-with-html5%2F&amp;title=Development%20With%20HTML5" id="wpa2a_4"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/09/development-with-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developer Tools for Chrome</title>
		<link>http://www.phpmind.com/blog/2011/09/developer-tools-for-chrome/</link>
		<comments>http://www.phpmind.com/blog/2011/09/developer-tools-for-chrome/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 20:04:36 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[Google Chrome]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1090</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe width="560" height="315" src="http://www.youtube.com/embed/nOEw9iiopwI" frameborder="0" allowfullscreen></iframe></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F09%2Fdeveloper-tools-for-chrome%2F&amp;title=Developer%20Tools%20for%20Chrome" id="wpa2a_6"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/09/developer-tools-for-chrome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Show hide content using core JavaScript ?</title>
		<link>http://www.phpmind.com/blog/2011/05/how-to-show-hide-content-using-core-javascript/</link>
		<comments>http://www.phpmind.com/blog/2011/05/how-to-show-hide-content-using-core-javascript/#comments</comments>
		<pubDate>Wed, 11 May 2011 22:36:28 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1082</guid>
		<description><![CDATA[Today I was working on another website and had very long text/content and thought to use Jquery, there are several examples given on internet. I tried to use some of them of course they are very simple but because of some reason it didn&#8217;t work for me either in IE and chrome. So decided to [...]]]></description>
			<content:encoded><![CDATA[<p>Today I was working on another website and had very long text/content and thought to use Jquery, there are several examples given on internet. I tried to use some of them of course they are very simple but because of some reason it didn&#8217;t work for me either in IE and chrome.<br />
So decided to compile my own show hide JavaScript which is based on DOM!<br />
Here is very simple code and it works everywhere, Firefox, Internet Explorer, Chrome, Safari etc.</p>
<p>Steps are self explanatory.<br />
A.	Use JavaScript code<br />
B.	Use Css Class<br />
C.	See the example and compile your own!</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1082code3'); return false;">View Code</a> JS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p10823"><td class="code" id="p1082code3"><pre class="js" style="font-family:monospace;">&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
function PM_show_Hide(pmID) {
   if (document.getElementById(pmID)) {
      if (document.getElementById(pmID+'-show').style.display != 'none') {
         document.getElementById(pmID+'-show').style.display = 'none';
         document.getElementById(pmID).style.display = 'block';
      }
      else {
         document.getElementById(pmID+'-show').style.display = 'inline';
         document.getElementById(pmID).style.display = 'none';
      }
   }
}
&lt;/script&gt;
&lt;style type=&quot;text/css&quot;&gt;
   .more-pm {
      display: none;
&lt;/style&gt;</pre></td></tr></table></div>


<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1082code4'); return false;">View Code</a> HTML</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p10824"><td class="code" id="p1082code4"><pre class="html" style="font-family:monospace;">&nbsp;
&lt;p&gt;This is first paragraph of my big content. 
&lt;a href=&quot;#&quot; id=&quot;PM-show&quot; class=&quot;showLink&quot; onclick=&quot;PM_show_Hide('PM');return false;&quot;&gt;Click to See more.&lt;/a&gt; &lt;p&gt;
&nbsp;
&lt;div id=&quot;PM&quot; class=&quot;more-PM&quot;&gt;
         &lt;p&gt;Here is your hidden text which you want to hide!! Copy your text here!&lt;/p&gt;
         &lt;p&gt;&lt;a href=&quot;#&quot; id=&quot;PM-hide&quot; class=&quot;hideLink&quot; onclick=&quot;PM_show_Hide('PM');return false;&quot;&gt;Click to hide this  content.&lt;/a&gt;&lt;/p&gt;
      &lt;/div&gt;</pre></td></tr></table></div>

<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F05%2Fhow-to-show-hide-content-using-core-javascript%2F&amp;title=How%20to%20Show%20hide%20content%20using%20core%20JavaScript%20%3F" id="wpa2a_8"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/05/how-to-show-hide-content-using-core-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to upgrade  Drupal ?</title>
		<link>http://www.phpmind.com/blog/2011/04/how-to-upgrade-drupal/</link>
		<comments>http://www.phpmind.com/blog/2011/04/how-to-upgrade-drupal/#comments</comments>
		<pubDate>Wed, 20 Apr 2011 22:54:22 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1074</guid>
		<description><![CDATA[Drupal is always releasing security updates every now and then. PHP communality called it patches! So here are the steps you can use to patch your Drupal and lock down security hole in Drupal web application. 1. Download latest release of Drupal package from Drupal site. 2. Put your PHP Drupal site in maintenance mode [...]]]></description>
			<content:encoded><![CDATA[<p>Drupal is always releasing security updates  every now and then.<br />
PHP communality called it patches!<br />
So here are the steps you can use to patch your Drupal and lock down security hole in Drupal web application.<br />
1.	Download latest release of  Drupal package from Drupal site.<br />
2.	Put your PHP Drupal site in maintenance  mode (offline)<br />
3.	Take a database backup/export using any MYSQL  tools,  like phpmyadmin (I use it in MAMP environment ).  Same thing you can do by command line if you want to do so.<br />
(mysql –u  ROOT –p  YOURPASSWORD  yourdatabasename  &gt; exporteddbname.sql)<br />
4.	 Make backup of your Drupal  application folder.<br />
5.	Now it is time to copy all files – untar or unzip your downloaded new Drupal patch package.<br />
6.	Copy all files and folders Except “Site folder”, “.htaccess” file and “robot.txt”,  you can have custom configuration and setting to these files and folder so it is good not to overwrite these files and folder.</p>
<p><img class="aligncenter size-full wp-image-1079" title="phpmind-how-to-update-drupal" src="http://www.phpmind.com/blog/wp-content/uploads/2011/04/phpmind-how-to-update-drupal1.jpg" alt="" width="488" height="487" /><br />
7.	Run CRON  in your Drupal application.<br />
8.	Run update.php  it will detect automatically type of database and schema you are using  and update it.  It takes few seconds, so please don’t halt upgrading process.</p>
<p>http://localhost/drupal/update.php</p>
<p>9.	If above process is successful, put back your site in (Online mode) live mode.<br />
10.	See status report and you will notice your Drupal is updated.</p>
<p>Your Drupal application is safe now !</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F04%2Fhow-to-upgrade-drupal%2F&amp;title=How%20to%20upgrade%20%20Drupal%20%3F" id="wpa2a_10"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/04/how-to-upgrade-drupal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is Windows Azure?</title>
		<link>http://www.phpmind.com/blog/2011/02/what-is-windows-azure/</link>
		<comments>http://www.phpmind.com/blog/2011/02/what-is-windows-azure/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 21:39:37 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[PHP Windows]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1072</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><object width="640" height="390"><param name="movie" value="http://www.youtube.com/v/twFl0iLRbyk&#038;rel=0&#038;hl=en_US&#038;feature=player_embedded&#038;version=3"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/twFl0iLRbyk&#038;rel=0&#038;hl=en_US&#038;feature=player_embedded&#038;version=3" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="640" height="390"></embed></object></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F02%2Fwhat-is-windows-azure%2F&amp;title=What%20is%20Windows%20Azure%3F" id="wpa2a_12"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/02/what-is-windows-azure/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What is difference between setInterval () and  setTimeout () ?</title>
		<link>http://www.phpmind.com/blog/2011/02/what-is-difference-between-setinterval-and-settimeout/</link>
		<comments>http://www.phpmind.com/blog/2011/02/what-is-difference-between-setinterval-and-settimeout/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 00:05:32 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1069</guid>
		<description><![CDATA[setTimeout execute javascript statement AFTER x interval. For example &#8211; setTimeout(“execute_something();”, 2000); This is execute function execute_something() after 2 seconds. setInterval execute javascript statement EVERY x interval. For example &#8211; setInterval(“execute_something();”, 2000); This is execute function execute_something() in every 2 seconds.]]></description>
			<content:encoded><![CDATA[<p>setTimeout execute javascript statement AFTER x interval.<br />
For example &#8211; setTimeout(“execute_something();”, 2000);<br />
This is execute function execute_something() after 2 seconds. </p>
<p>setInterval execute javascript statement EVERY x interval.<br />
For example &#8211; setInterval(“execute_something();”, 2000);<br />
This is execute function execute_something() in every 2 seconds. </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F02%2Fwhat-is-difference-between-setinterval-and-settimeout%2F&amp;title=What%20is%20difference%20between%20setInterval%20%28%29%20and%20%20setTimeout%20%28%29%20%3F" id="wpa2a_14"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/02/what-is-difference-between-setinterval-and-settimeout/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to use Firebug within Google Chrome?</title>
		<link>http://www.phpmind.com/blog/2011/02/how-to-use-firebug-within-google-chrome/</link>
		<comments>http://www.phpmind.com/blog/2011/02/how-to-use-firebug-within-google-chrome/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 23:59:31 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[Google Hacks]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1065</guid>
		<description><![CDATA[Google Chrome does not support plug-ins, there is Firebug-like too already available built within Google Chrome. That is called “Inspect element” just right click on page anywhere and click on “Inspect element” menu command. It will open a new panel like firebug. It works well for CSS debugging and you can change CSS in real [...]]]></description>
			<content:encoded><![CDATA[<p>Google Chrome does not support plug-ins, there is Firebug-like too already available built within Google Chrome. That is called “Inspect element” just right click on page anywhere and click on “Inspect element” menu command. It will open a new panel like firebug.  It works well for CSS debugging and you can change CSS in real time like firebug but JavaScript debugging is not very good supported.<br />
<img src="http://www.phpmind.com/blog/wp-content/uploads/2011/02/phpmind-firebug-chrome.jpg" alt="" title="phpmind-firebug-chrome" width="634" height="268" class="alignleft size-full wp-image-1067" /></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F02%2Fhow-to-use-firebug-within-google-chrome%2F&amp;title=How%20to%20use%20Firebug%20within%20Google%20Chrome%3F" id="wpa2a_16"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/02/how-to-use-firebug-within-google-chrome/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to change date formate of twitter field &#8220;created_at&#8221;?</title>
		<link>http://www.phpmind.com/blog/2011/02/how-to-change-date-formate-of-twitter-field-created_at%e2%80%99/</link>
		<comments>http://www.phpmind.com/blog/2011/02/how-to-change-date-formate-of-twitter-field-created_at%e2%80%99/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 04:02:22 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1053</guid>
		<description><![CDATA[php coder who is reading twitter API for latest tweets want to change date/ timestamp format which is returned by ‘created_at’ key. Most of the times I use JSON based request. e. i. http://search.twitter.com/search.json?q=phpmind These are the fields returned by above request. Hope fully you understand how json string looks like. Now it is time [...]]]></description>
			<content:encoded><![CDATA[<p>php coder who is reading twitter API for latest tweets want to change date/ timestamp format which is returned by ‘created_at’ key. Most of the times I use JSON  based request.  e. i.  http://search.twitter.com/search.json?q=phpmind</p>
<p>These are the fields returned by above request.</p>
<p>Hope fully you understand how json string looks like.</p>
<p><img  title="phpmind-twitter-json" src="http://www.phpmind.com/blog/wp-content/uploads/2011/02/phpmind-twitter-json.jpg" alt="" width="250" height="304" /></p>
<p>Now it  is time to convert  date time stamp in more readable format.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1053code7'); return false;">View Code</a> PHP</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p10537"><td class="code" id="p1053code7"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <a href="http://www.php.net/date"><span style="color: #990000;">date</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;l M j \- g:ia&quot;</span><span style="color: #339933;">,</span><a href="http://www.php.net/strtotime"><span style="color: #990000;">strtotime</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$object</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">returns</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">created_at</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Please change the date parameters if you want to play with different date formats.</p>
<p>If you want to use javaScript way to format dates here is very cool function.<br />
Returned by twitter &#8211; Wed, 09 Feb 2011 02:44:36 +0000 </p>
<p>Returned by this javaScript function,  TwitterDateConverter ($object->returns[0]->created_at);<br />
Output will be for Example <strong>&#8220;14 minutes ago&#8221;</strong></p>
<p>See Image Below!</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1053code8'); return false;">View Code</a> JS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p10538"><td class="code" id="p1053code8"><pre class="js" style="font-family:monospace;">&lt;script type=&quot;text/JavaScript&quot;&gt;
&nbsp;
function TwitterDateConverter(time){
	var date = new Date(time),
		diff = (((new Date()).getTime() - date.getTime()) / 1000),
		day_diff = Math.floor(diff / 86400);
&nbsp;
	if ( isNaN(day_diff) || day_diff &lt; 0 || day_diff &gt;= 31 )
		return;
&nbsp;
	return day_diff == 0 &amp;&amp; (
			diff &lt; 60 &amp;&amp; &quot;just now&quot; ||
			diff &lt; 120 &amp;&amp; &quot;1 minute ago&quot; ||
			diff &lt; 3600 &amp;&amp; Math.floor( diff / 60 ) + &quot; minutes ago&quot; ||
			diff &lt; 7200 &amp;&amp; &quot;1 hour ago&quot; ||
			diff &lt; 86400 &amp;&amp; Math.floor( diff / 3600 ) + &quot; hours ago&quot;) ||
		day_diff == 1 &amp;&amp; &quot;Yesterday&quot; ||
		day_diff &lt; 7 &amp;&amp; day_diff + &quot; days ago&quot; ||
		day_diff &lt; 31 &amp;&amp; Math.ceil( day_diff / 7 ) + &quot; weeks ago&quot;;
}
&lt;/script&gt;</pre></td></tr></table></div>

<p>
<img src="http://www.phpmind.com/blog/wp-content/uploads/2011/02/phpmind-date-foramting-example.jpg" alt="" title="Twitter-date-formatting" width="484" height="442" /></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F02%2Fhow-to-change-date-formate-of-twitter-field-created_at%25e2%2580%2599%2F&amp;title=How%20to%20change%20date%20formate%20of%20twitter%20field%20%26%238220%3Bcreated_at%26%238221%3B%3F" id="wpa2a_18"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/02/how-to-change-date-formate-of-twitter-field-created_at%e2%80%99/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to auto refresh a page through JavaScript?</title>
		<link>http://www.phpmind.com/blog/2011/02/how-to-auto-refresh-a-page-through-javascript/</link>
		<comments>http://www.phpmind.com/blog/2011/02/how-to-auto-refresh-a-page-through-javascript/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 03:33:31 +0000</pubDate>
		<dc:creator>om</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.phpmind.com/blog/?p=1051</guid>
		<description><![CDATA[Here is the small JavaScript example that tells how you can use setTimeout() to auto refresh page content. You can utilize this script in games site or stock sites or anywhere you can think of. View Code JS&#60;html&#62; &#60;head&#62; &#60;script type=&#34;text/JavaScript&#34;&#62; &#60;!-- function AutoRefresh(interval) { setTimeout(&#34;location.reload(true);&#34;,interval); } // --&#62; &#60;/script&#62; &#60;title&#62;PHPMIND – Javascript Tutorials&#60;/title&#62;&#60;/head&#62; &#160; [...]]]></description>
			<content:encoded><![CDATA[<p>Here is the small JavaScript example that tells how you can use setTimeout() to auto refresh page content. You can utilize this script in games site or stock sites or anywhere you can think of.</p>

<div class="wp_codebox_msgheader"><span class="right"></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p1051code10'); return false;">View Code</a> JS</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="p105110"><td class="code" id="p1051code10"><pre class="js" style="font-family:monospace;">&lt;html&gt;
&lt;head&gt;
&lt;script type=&quot;text/JavaScript&quot;&gt;
&lt;!--
function AutoRefresh(interval) {
	setTimeout(&quot;location.reload(true);&quot;,interval);
}
//   --&gt;
&lt;/script&gt;
&lt;title&gt;PHPMIND – Javascript Tutorials&lt;/title&gt;&lt;/head&gt;
&nbsp;
&lt;body onload=&quot;JavaScript: AutoRefresh(6000);&quot;&gt;
&nbsp;
&lt;h2&gt;JavaScript Auto Refresh Page&lt;/h2&gt;
&lt;p&gt;This code will refresh you page in 6 seconds. We have used OnLoad() Event function to call our function.
Note : Please don’t use a lot of auto refresh page because it is kind of annoying and your sever bandwidth will be decreasing, one way you are increasing hits to server.
&nbsp;
&lt;/body&gt;
&lt;/html&gt;</pre></td></tr></table></div>

<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.phpmind.com%2Fblog%2F2011%2F02%2Fhow-to-auto-refresh-a-page-through-javascript%2F&amp;title=How%20to%20auto%20refresh%20a%20page%20through%20JavaScript%3F" id="wpa2a_20"><img src="http://www.phpmind.com/blog/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.phpmind.com/blog/2011/02/how-to-auto-refresh-a-page-through-javascript/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

