<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Aruptheboss&#039;s Blog</title>
	<atom:link href="http://aruptheboss.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://aruptheboss.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 23 Sep 2010 18:54:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='aruptheboss.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Aruptheboss&#039;s Blog</title>
		<link>http://aruptheboss.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://aruptheboss.wordpress.com/osd.xml" title="Aruptheboss&#039;s Blog" />
	<atom:link rel='hub' href='http://aruptheboss.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Polymorphism in php</title>
		<link>http://aruptheboss.wordpress.com/2010/09/23/polymorphism-in-php/</link>
		<comments>http://aruptheboss.wordpress.com/2010/09/23/polymorphism-in-php/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 18:54:56 +0000</pubDate>
		<dc:creator>Kal Purush</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://aruptheboss.wordpress.com/?p=34</guid>
		<description><![CDATA[You are very happy to hear that PHP supports OOP and decided to spend your holiday by exploring the Object Oriented Feature of  PHP. But suddenly you got stuck to write method overloading and also became furious  for the absence of  Late static binding(Lazy Binding).But don&#8217;t be worried, the later would be solved in PHP [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=34&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>You are very happy to hear that PHP supports OOP and decided to spend your holiday by exploring the Object Oriented Feature of  PHP. But suddenly you got stuck to write method overloading and also became furious  for the absence of  Late static binding(Lazy Binding).But don&#8217;t be worried, the later would be solved in PHP v6 and now i will show you how you can achieve method overloading in PHP.</p>
<p>&lt;?php<br />
class overloading<br />
{<br />
function __call($method, $args)<br />
{<br />
if($method == &#8216;talk&#8217;)<br />
{<br />
if(count($args) == 0)<br />
{<br />
$this-&gt;sayNothing();<br />
}<br />
elseif(count($args) == 1)<br />
{<br />
if(is_array($args[0]))<br />
{<br />
$this-&gt;sayArray($args[0]);<br />
}<br />
else<br />
{<br />
$this-&gt;saySentence($args[0]);<br />
}<br />
}<br />
elseif(count($args) == 2)<br />
{<br />
$this-&gt;sayTwo($args[0], $args[1]);<br />
}<br />
else<br />
{<br />
return false;<br />
}<br />
}<br />
}</p>
<p>function rawr()<br />
{<br />
echo &#8220;rawr&#8221;;<br />
}</p>
<p>function sayArray($arr)<br />
{<br />
foreach($arr as $s)<br />
{<br />
$this-&gt;saySentence($s .&#8221;. &#8220;);<br />
}<br />
}</p>
<p>function sayNothing()<br />
{<br />
echo &#8220;I have nothing to say.&#8221;;<br />
}</p>
<p>function saySentence($sentence)<br />
{<br />
echo $sentence;<br />
}</p>
<p>function sayTwo($first,$second)<br />
{<br />
echo $first . &#8220;.&lt;br/&gt;&#8221; . $second . &#8220;.&#8221;;<br />
}<br />
}</p>
<p>$o = new overloading();<br />
$o-&gt;rawr();<br />
$o-&gt;talk(&#8216;a sentence&#8217;);<br />
$o-&gt;talk(&#8216;a sentence&#8217;,'another sentence&#8217;);<br />
$o-&gt;talk(array(&#8216;hello I am joey.&#8217;,'nice to meet you&#8217;));</p>
<p>Bit clumsy isn&#8217;t it but you still you will get the flavor of  method overloading. Enjoy&#8230;&#8230;..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aruptheboss.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aruptheboss.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aruptheboss.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aruptheboss.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aruptheboss.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aruptheboss.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aruptheboss.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aruptheboss.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aruptheboss.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aruptheboss.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aruptheboss.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aruptheboss.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aruptheboss.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aruptheboss.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=34&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aruptheboss.wordpress.com/2010/09/23/polymorphism-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abac0dc833d6e1f8e979250ca41dd1ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aruptheboss</media:title>
		</media:content>
	</item>
		<item>
		<title>Reading XML File By PHP</title>
		<link>http://aruptheboss.wordpress.com/2010/04/13/reading-xml-file-by-php/</link>
		<comments>http://aruptheboss.wordpress.com/2010/04/13/reading-xml-file-by-php/#comments</comments>
		<pubDate>Tue, 13 Apr 2010 11:46:47 +0000</pubDate>
		<dc:creator>Kal Purush</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://aruptheboss.wordpress.com/?p=25</guid>
		<description><![CDATA[Writing code for reading  xml file can vary because xml file structure varies according to your need, hence the code.Following code snippet will read a specific structured XML file . $doc = new DOMDocument(); $doc-&#62;load(&#8216;books.xml&#8217; ); $books = $doc-&#62;getElementsByTagName( &#8220;book&#8221; ); foreach( $books as $book ) { $authors    = $book-&#62;getElementsByTagName( &#8220;author&#8221; ); $author     = $authors-&#62;item(0)-&#62;nodeValue; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=25&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Writing code for reading  xml file can vary because xml file structure varies according to your need, hence the code.Following code snippet will read a specific structured XML file .</p>
<p>$doc = new DOMDocument();<br />
$doc-&gt;load(&#8216;books.xml&#8217; );<br />
$books = $doc-&gt;getElementsByTagName( &#8220;book&#8221; );</p>
<p>foreach( $books as $book )<br />
{<br />
$authors    = $book-&gt;getElementsByTagName( &#8220;author&#8221; );<br />
$author     = $authors-&gt;item(0)-&gt;nodeValue;</p>
<p>$publishers = $book-&gt;getElementsByTagName( &#8220;publisher&#8221; );<br />
$publisher  = $publishers-&gt;item(0)-&gt;nodeValue;</p>
<p>$titles     = $book-&gt;getElementsByTagName( &#8220;title&#8221; );<br />
$title      = $titles-&gt;item(0)-&gt;nodeValue;</p>
<p>echo &#8220;$title &#8211; $author &#8211; $publisher&#8221;;<br />
echo &#8220;&lt;br/&gt;&#8221;;<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aruptheboss.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aruptheboss.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aruptheboss.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aruptheboss.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aruptheboss.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aruptheboss.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aruptheboss.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aruptheboss.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aruptheboss.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aruptheboss.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aruptheboss.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aruptheboss.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aruptheboss.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aruptheboss.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=25&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aruptheboss.wordpress.com/2010/04/13/reading-xml-file-by-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abac0dc833d6e1f8e979250ca41dd1ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aruptheboss</media:title>
		</media:content>
	</item>
		<item>
		<title>Updating Twitter Status By CURL</title>
		<link>http://aruptheboss.wordpress.com/2010/04/12/updating-twitter-status-by-curl/</link>
		<comments>http://aruptheboss.wordpress.com/2010/04/12/updating-twitter-status-by-curl/#comments</comments>
		<pubDate>Mon, 12 Apr 2010 11:43:20 +0000</pubDate>
		<dc:creator>Kal Purush</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://aruptheboss.wordpress.com/?p=20</guid>
		<description><![CDATA[Anyone can update their twitter status by simply log in to twitter and update his/her status. But if you require to update your status by simply typing your status and clicking on a button name &#8220;Update my status&#8221; from your blog or fr0m outside any application rather than twitter than what you will do?Remember your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=20&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Anyone can update their twitter status by simply log in to twitter and update his/her status. But if you require to update your status by simply typing your status and clicking on a button name &#8220;Update my status&#8221; from your blog or fr0m outside any application rather than twitter than what you will do?Remember your manual twitter status update strategy.First you have to log in than you can update your status.But if you are  a programmer you can simply do it by  writing few lines of code.I have shown here the PHP style.Here i have not followed the usual way, for example writing a stand alone class for CURL and also a CURL exception class but believe me it will work&#8230;This is the basic&#8230;.</p>
<p>&lt;?php</p>
<p>/* settings */<br />
$username = &#8216;your_user_name&#8217;;<br />
$password  = &#8216;your_pass&#8217;;<br />
$format   = &#8216;xml&#8217;; //alternative: json<br />
$message  = &#8216;your message&#8217;;</p>
<p>/*******Curl version*********/<br />
$curl = curl_init(&#8216;<a href="http://twitter.com/statuses/update.xml%27" target="_blank">http://twitter.com/statuses/update.xml&#8217;</a>);<br />
curl_setopt($curl,  CURLOPT_CONNECTTIMEOUT, 10);<br />
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);<br />
curl_setopt($curl, CURLOPT_POST, 1);<br />
curl_setopt($curl,  CURLOPT_POSTFIELDS, &#8216;status=&#8217;.urlencode($message));<br />
curl_setopt($curl,  CURLOPT_USERPWD, $username.&#8217;:&#8217;.$password);<br />
curl_setopt($curl,  CURLOPT_HTTPHEADER, array(&#8216;Expect:&#8217;));</p>
<p>$xml = curl_exec($curl);<br />
print $xml;<br />
/******End*****/<br />
curl_close($curl);</p>
<p>after successfully updating your status a xml will be returned.By processing the xml  node you can show a message like  &#8220;You status has been updated successfully.&#8221;</p>
<p>Enjoy&#8230;..</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aruptheboss.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aruptheboss.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aruptheboss.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aruptheboss.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aruptheboss.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aruptheboss.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aruptheboss.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aruptheboss.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aruptheboss.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aruptheboss.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aruptheboss.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aruptheboss.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aruptheboss.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aruptheboss.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=20&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aruptheboss.wordpress.com/2010/04/12/updating-twitter-status-by-curl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abac0dc833d6e1f8e979250ca41dd1ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aruptheboss</media:title>
		</media:content>
	</item>
		<item>
		<title>Gmail Contact List Importer</title>
		<link>http://aruptheboss.wordpress.com/2009/11/08/gmail-contact-list-importer/</link>
		<comments>http://aruptheboss.wordpress.com/2009/11/08/gmail-contact-list-importer/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 10:09:22 +0000</pubDate>
		<dc:creator>Kal Purush</dc:creator>
				<category><![CDATA[Google]]></category>

		<guid isPermaLink="false">http://aruptheboss.wordpress.com/?p=16</guid>
		<description><![CDATA[This is a smart API of GOOGLE which imports the contact list.This Contacts API allows developers to create, read, update, and delete contacts using the Google Data protocol, based on AtomPub. var contactsService; function setupContactsService() { contactsService = new google.gdata.contacts.ContactsService(&#8216;exampleCo-exampleApp-1.0&#8242;); } function logMeIn() { var scope = &#8216;http://www.google.com/m8/feeds&#8217;; var token = google.accounts.user.login(scope); } /* call [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=16&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a smart API of GOOGLE which imports the contact list.This Contacts API allows developers to create, read, update, and delete contacts using the <a href="http://code.google.com/apis/gdata/overview.html">Google Data protocol</a>, based on <a href="http://www.ietf.org/rfc/rfc5023.txt">AtomPub</a>.</p>
<p>var contactsService;</p>
<p>function setupContactsService() {<br />
contactsService = new google.gdata.contacts.ContactsService(&#8216;exampleCo-exampleApp-1.0&#8242;);<br />
}</p>
<p>function logMeIn()<br />
{<br />
var scope = &#8216;http://www.google.com/m8/feeds&#8217;;<br />
var token = google.accounts.user.login(scope);</p>
<p>}</p>
<p>/*</p>
<p>call this function during page load</p>
<p>*/</p>
<p>function initFunc() {<br />
setupContactsService();<br />
logMeIn();<br />
}</p>
<p>/*<br />
* Query for contacts<br />
*/</p>
<p>// Create the contacts service object<br />
function getMyContacts()<br />
{<br />
var contactsService =<br />
new google.gdata.contacts.ContactsService(&#8216;GoogleInc-jsguide-1.0&#8242;);<br />
var contactAddressContainer = &#8221;;<br />
// The feed URI that is used for retrieving contacts<br />
var feedUri = &#8216;http://www.google.com/m8/feeds/contacts/default/full&#8217;;<br />
var query = new google.gdata.contacts.ContactQuery(feedUri);</p>
<p>// Set the maximum of the result set to be 50<br />
query.setMaxResults(50);<br />
var callback = function(result)<br />
{<br />
// An array of contact entries<br />
var entries = result.feed.entry;</p>
<p>// Iterate through the array of contact entries<br />
for (var i = 0; i &lt; entries.length; i++)<br />
{<br />
var contactEntry = entries[i];</p>
<p>var emailAddresses = contactEntry.getEmailAddresses();</p>
<p>// Iterate through the array of emails belonging to a single contact entry<br />
for (var j = 0; j &lt; emailAddresses.length; j++)<br />
{<br />
var emailAddress = emailAddresses[j].getAddress();<br />
//PRINT(&#8216;email = &#8216; + emailAddress);<br />
contactAddressContainer += &#8216;&lt;span style=&#8221;color:red;&#8221;&gt;&#8217;+emailAddress+&#8217;&lt;/span&gt;&lt;br/&gt;&#8217;;</p>
<p>}<br />
}<br />
//creating a continer for holding contact list<br />
document.getElementById(&#8216;contact_holder&#8217;).innerHTML = contactAddressContainer;<br />
}<br />
// Submit the request using the contacts service object<br />
contactsService.getContactFeed(query, callback, handleError);</p>
<p>}<br />
// Error handler<br />
var handleError = function(error)<br />
{<br />
alert(error);<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aruptheboss.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aruptheboss.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aruptheboss.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aruptheboss.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aruptheboss.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aruptheboss.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aruptheboss.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aruptheboss.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aruptheboss.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aruptheboss.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aruptheboss.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aruptheboss.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aruptheboss.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aruptheboss.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=16&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aruptheboss.wordpress.com/2009/11/08/gmail-contact-list-importer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abac0dc833d6e1f8e979250ca41dd1ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aruptheboss</media:title>
		</media:content>
	</item>
		<item>
		<title>A little tricky way to create progress bar</title>
		<link>http://aruptheboss.wordpress.com/2009/10/20/a-little-tricky-way-to-create-progress-bar/</link>
		<comments>http://aruptheboss.wordpress.com/2009/10/20/a-little-tricky-way-to-create-progress-bar/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 05:18:43 +0000</pubDate>
		<dc:creator>Kal Purush</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://aruptheboss.wordpress.com/?p=14</guid>
		<description><![CDATA[Progress bar has a general usage of acknowledging file uploading status in web.But in PHP if we know the percentage of file being uploaded in a certain interval continously(this is the main obstacle to overcome if you use PHP to do the job), then this technique will do the rest trick. code snipplet: &#60;?php // [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=14&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Progress bar has a general usage of acknowledging file uploading status in web.But in PHP if we know the percentage of file being uploaded in a certain interval continously(this is the main obstacle to overcome if you use PHP to do the job), then this technique will do the rest trick.</p>
<p><strong>code snipplet</strong>:</p>
<p>&lt;?php<br />
// A function that will create the initial setup<br />
// for the progress bar: You can modify this to<br />
// your liking for visual purposes:<br />
function create_progress() {<br />
// First create our basic CSS that will control<br />
// the look of this bar:<br />
echo &#8220;<br />
&lt;style&gt;<br />
#text {<br />
position: absolute;<br />
top: 100px;<br />
left: 50%;<br />
margin: 0px 0px 0px -150px;<br />
font-size: 18px;<br />
text-align: center;<br />
width: 300px;<br />
}<br />
#barbox_a {<br />
position: absolute;<br />
top: 130px;<br />
left: 50%;<br />
margin: 0px 0px 0px -160px;<br />
width: 304px;<br />
height: 24px;<br />
background-color: black;<br />
}<br />
.per {<br />
position: absolute;<br />
top: 130px;<br />
font-size: 18px;<br />
left: 50%;<br />
margin: 1px 0px 0px 150px;<br />
background-color: #FFFFFF;<br />
}</p>
<p>.bar {<br />
position: absolute;<br />
top: 132px;<br />
left: 50%;<br />
margin: 0px 0px 0px -158px;<br />
width: 0px;<br />
height: 20px;<br />
background-color: #0099FF;<br />
}</p>
<p>.blank {<br />
background-color: white;<br />
width: 300px;<br />
}<br />
&lt;/style&gt;<br />
&#8220;;</p>
<p>// Now output the basic, initial, XHTML that<br />
// will be overwritten later:<br />
echo &#8220;<br />
&lt;div id=&#8217;text&#8217;&gt;Script Progress&lt;/div&gt;<br />
&lt;div id=&#8217;barbox_a&#8217;&gt;&lt;/div&gt;<br />
&lt;div class=&#8217;bar blank&#8217;&gt;&lt;/div&gt;<br />
&lt;div class=&#8217;per&#8217;&gt;0%&lt;/div&gt;<br />
&#8220;;</p>
<p>// Ensure that this gets to the screen<br />
// immediately:<br />
ob_flush();<br />
flush();<br />
}</p>
<p>// A function that you can pass a percentage as<br />
// a whole number and it will generate the<br />
// appropriate new div&#8217;s to overlay the<br />
// current ones:</p>
<p>function update_progress($percent) {<br />
// First let&#8217;s recreate the percent with<br />
// the new one:<br />
echo &#8220;&lt;div class=&#8217;per&#8217;&gt;{$percent}<br />
%&lt;/div&gt;\n&#8221;;</p>
<p>// Now, output a new &#8216;bar&#8217;, forcing its width<br />
// to 3 times the percent, since we have<br />
// defined the percent bar to be at<br />
// 300 pixels wide.<br />
echo &#8220;&lt;div class=&#8217;bar&#8217; style=&#8217;width: &#8220;,<br />
$percent * 3, &#8220;px&#8217;&gt;&lt;/div&gt;\n&#8221;;</p>
<p>// Now, again, force this to be<br />
// immediately displayed:<br />
ob_flush();<br />
flush();<br />
}</p>
<p>// Ok, now to use this, first create the<br />
// initial bar info:<br />
create_progress();</p>
<p>// Now, let&#8217;s simulate doing some various<br />
// amounts of work, and updating the progress<br />
// bar as we go. The usleep commands will<br />
// simulate multiple lines of code<br />
// being executed.<br />
usleep(350000);                 //after .35 secs<br />
update_progress(7);<br />
usleep(1550000);<br />
update_progress(28);<br />
usleep(1000000);<br />
update_progress(48);<br />
usleep(1000000);<br />
update_progress(68);<br />
usleep(150000);<br />
update_progress(71);<br />
usleep(150000);<br />
update_progress(74);<br />
usleep(150000);<br />
update_progress(77);<br />
usleep(1150000);<br />
update_progress(100);</p>
<p>// Now that you are done, you could also<br />
// choose to output whatever final text that<br />
// you might wish to, and/or to redirect<br />
// the user to another page.<br />
?&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aruptheboss.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aruptheboss.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aruptheboss.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aruptheboss.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aruptheboss.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aruptheboss.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aruptheboss.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aruptheboss.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aruptheboss.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aruptheboss.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aruptheboss.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aruptheboss.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aruptheboss.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aruptheboss.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=14&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aruptheboss.wordpress.com/2009/10/20/a-little-tricky-way-to-create-progress-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abac0dc833d6e1f8e979250ca41dd1ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aruptheboss</media:title>
		</media:content>
	</item>
		<item>
		<title>Download in PHP</title>
		<link>http://aruptheboss.wordpress.com/2009/10/20/download-in-php/</link>
		<comments>http://aruptheboss.wordpress.com/2009/10/20/download-in-php/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 04:33:14 +0000</pubDate>
		<dc:creator>Kal Purush</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://aruptheboss.wordpress.com/?p=10</guid>
		<description><![CDATA[file_download.php: &#60;?php $cmd = $_REQUEST['cmd']; switch($cmd) { case &#8216;download&#8217;:  header(&#8220;Content-type:application/pdf&#8221;); header(&#8220;Content-Disposition:attachment;filename=downloaded.pdf&#8221;); // Put the source in the root directory.if you don&#8217;t then change the path accordingly. readfile(&#8220;php5_power_programming.pdf&#8221;); break; default         : break; } ?&#62; Client side: Simply call the above  script according to the following way: &#60;a href=&#8221;/file_download.php?cmd=&#8217;download&#8217; &#8220;&#62;download&#60;/a&#62; or the you can do it with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=10&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>file_download.php</strong>:</p>
<p>&lt;?php</p>
<p>$cmd = $_REQUEST['cmd'];</p>
<p>switch($cmd)<br />
{<br />
case &#8216;download&#8217;:  header(&#8220;Content-type:application/pdf&#8221;);<br />
header(&#8220;Content-Disposition:attachment;filename=downloaded.pdf&#8221;);</p>
<p>// Put the source in the root directory.if you don&#8217;t then change the path accordingly.<br />
readfile(&#8220;php5_power_programming.pdf&#8221;);<br />
break;</p>
<p>default         : break;<br />
}<br />
?&gt;</p>
<p><strong>Client side</strong>:</p>
<p>Simply call the above  script according to the following way:</p>
<p>&lt;a href=&#8221;/file_download.php?cmd=&#8217;download&#8217; &#8220;&gt;download&lt;/a&gt; or the you can do it with a little bit help of javascript.</p>
<p>that&#8217;s enough.Very simple.Isn&#8217;t it?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aruptheboss.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aruptheboss.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aruptheboss.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aruptheboss.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aruptheboss.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aruptheboss.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aruptheboss.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aruptheboss.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aruptheboss.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aruptheboss.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aruptheboss.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aruptheboss.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aruptheboss.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aruptheboss.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=10&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aruptheboss.wordpress.com/2009/10/20/download-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abac0dc833d6e1f8e979250ca41dd1ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aruptheboss</media:title>
		</media:content>
	</item>
		<item>
		<title>HTML5 some new tag</title>
		<link>http://aruptheboss.wordpress.com/2009/10/18/html5-some-new-tag/</link>
		<comments>http://aruptheboss.wordpress.com/2009/10/18/html5-some-new-tag/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 04:37:50 +0000</pubDate>
		<dc:creator>Kal Purush</dc:creator>
				<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://aruptheboss.wordpress.com/?p=5</guid>
		<description><![CDATA[&#60;video&#62; &#60;audio&#62; &#60;canvas&#62; &#60;progress&#62; &#60;datagrid&#62; &#60;dialog&#62; &#60;menu&#62; For details you can go through http://www.w3.org/TR/html5-diff<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=5&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<ul>
<li>&lt;video&gt;</li>
<li>&lt;audio&gt;</li>
<li>&lt;canvas&gt;</li>
<li>&lt;progress&gt;</li>
<li>&lt;datagrid&gt;</li>
<li>&lt;dialog&gt;</li>
<li>&lt;menu&gt;</li>
</ul>
<p>For details you can go through <a title="http://www.w3.org/TR/html5-diff" href="http://www.w3.org/TR/html5-diff">http://www.w3.org/TR/html5-diff</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aruptheboss.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aruptheboss.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aruptheboss.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aruptheboss.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aruptheboss.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aruptheboss.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aruptheboss.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aruptheboss.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aruptheboss.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aruptheboss.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aruptheboss.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aruptheboss.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aruptheboss.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aruptheboss.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=5&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aruptheboss.wordpress.com/2009/10/18/html5-some-new-tag/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abac0dc833d6e1f8e979250ca41dd1ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aruptheboss</media:title>
		</media:content>
	</item>
		<item>
		<title>New feature in PHP 5.3</title>
		<link>http://aruptheboss.wordpress.com/2009/10/03/3/</link>
		<comments>http://aruptheboss.wordpress.com/2009/10/03/3/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 04:21:28 +0000</pubDate>
		<dc:creator>Kal Purush</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://aruptheboss.wordpress.com/?p=3</guid>
		<description><![CDATA[Major New features in PHP 5.3 Name spaces Late Static Binding MySQL Native Driver Additional OpenSSL Functions. Improved Command Line Parameter Support XSLT Profiling New Error Levels For details you can go through http://articles.sitepoint.com/article/whats-new-php-5-3<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=3&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } --></p>
<p style="margin-bottom:0;"><strong>Major New features in PHP 5.3</strong></p>
<p style="margin-bottom:0;">
<ul>
<li>
<p style="margin-bottom:0;"><strong>Name spaces</strong></p>
</li>
<li>
<p style="margin-bottom:0;"><strong>Late Static Binding</strong></p>
</li>
<li>
<p style="margin-bottom:0;"><strong>MySQL Native Driver</strong></p>
</li>
<li>
<p style="margin-bottom:0;"><strong>Additional OpenSSL  Functions.</strong></p>
</li>
<li>
<p style="margin-bottom:0;"><strong>Improved Command Line Parameter 	Support</strong></p>
</li>
<li>
<p style="margin-bottom:0;"><strong>XSLT Profiling</strong></p>
</li>
<li>
<p style="margin-bottom:0;"><strong>New Error Levels</strong></p>
</li>
</ul>
<p style="margin-bottom:0;">
<p style="margin-bottom:0;"><strong>For details you can go through <a class="aligncenter" href="//articles.sitepoint.com/article/whats-new-php-5-3" target="_blank">http://articles.sitepoint.com/article/whats-new-php-5-3</a></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/aruptheboss.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/aruptheboss.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/aruptheboss.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/aruptheboss.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/aruptheboss.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/aruptheboss.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/aruptheboss.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/aruptheboss.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/aruptheboss.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/aruptheboss.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/aruptheboss.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/aruptheboss.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/aruptheboss.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/aruptheboss.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=aruptheboss.wordpress.com&amp;blog=8624056&amp;post=3&amp;subd=aruptheboss&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://aruptheboss.wordpress.com/2009/10/03/3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/abac0dc833d6e1f8e979250ca41dd1ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">aruptheboss</media:title>
		</media:content>
	</item>
	</channel>
</rss>
