<?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>Programming Ideas, Logics, Tips and Tricks &#187; error</title>
	<atom:link href="http://www.sajithmr.me/tag/error/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me</link>
	<description></description>
	<lastBuildDate>Mon, 23 Jan 2012 15:44:09 +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>Facebook Graph API &#8211; The missing part</title>
		<link>http://www.sajithmr.me/facebook-graph-api-the-missing-part</link>
		<comments>http://www.sajithmr.me/facebook-graph-api-the-missing-part#comments</comments>
		<pubDate>Thu, 15 Jul 2010 08:15:39 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[album]]></category>
		<category><![CDATA[albums]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[empty string]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[featured]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[graph api]]></category>
		<category><![CDATA[help]]></category>
		<category><![CDATA[missing]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[photos]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[privacy]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[rest api]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=840</guid>
		<description><![CDATA[As you all know recent changes in privacy issues made Facebook to change their basic API and added some security concerns. From my best practise, most of the old applications are safe, but you will be in trouble when you create new application. By default you cannot access user&#8217;s photos, profile pictures , albums etc. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-841" title="facebook_logo" src="http://www.sajithmr.me/wp-content/uploads/2010/07/facebook_logo.png" alt="facebook_logo" width="400" height="132" /></p>
<p>As you all know recent changes in privacy issues made Facebook to change their basic API and added some security concerns. From my best practise, most of the old applications are safe, but you will be in trouble when you create new application. By default you cannot access user&#8217;s photos, profile pictures , albums etc. If you continue with old REST API, you may face this problem. You will get an empty array or json string when you call <strong>photos.getAlbum</strong>s function.</p>
<p>If you test these functions from Facebook Console Tool:</p>
<p><a href="http://developers.facebook.com/docs/reference/rest/photos.getAlbums" target="_blank">http://developers.facebook.com/docs/reference/rest/photos.getAlbums</a></p>
<p>It returns real value when you select old applications and returns empty string [] if you select your newly created Facebook app.</p>
<p>To get all those support, you need to use new <a href="http://developers.facebook.com/docs/api" target="_blank">Graph API</a></p>
<p>But if you follow the same steps mentioned in that official document, you will still get this empty string problem. Because, in the basic authentication call, there is no permission type is mentioned. You can only see a basic message with Allow or Deny button.</p>
<p>According to that document, as the part of authentication, you need to call this url with your client id and redirect url and it returns an access_token after a #</p>
<pre style="margin-top: 18px; margin-right: 18px; margin-bottom: 18px; margin-left: 39px; padding-top: 7px; padding-right: 0px; padding-bottom: 7px; padding-left: 10px; outline-width: 0px; outline-style: initial; outline-color: initial; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 3px; border-style: solid; border-color: #d8dfea; line-height: 18px; font-family: monospace; color: #006000; font-size: 13px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f2f2f2; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial;">https://graph.facebook.com/oauth/authorize?
    client_id=...&amp;
    redirect_uri=http://www.example.com/oauth_redirect</pre>
<p>You need to use this access_token to request all other functions, eg:</p>
<pre style="margin-top: 18px; margin-right: 18px; margin-bottom: 18px; margin-left: 39px; padding-top: 7px; padding-right: 0px; padding-bottom: 7px; padding-left: 10px; outline-width: 0px; outline-style: initial; outline-color: initial; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 3px; border-style: solid; border-color: #d8dfea; line-height: 18px; font-family: monospace; color: #006000; font-size: 13px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f2f2f2; overflow-x: auto; overflow-y: auto; background-position: initial initial; background-repeat: initial initial;">https://graph.facebook.com/me?access_token=...</pre>
<p>This call will work for most of the requests except photos or albums. So the mistake in these calls are the permission.</p>
<p><strong><span style="color: #ff6600;">Here is the correction:</span></strong></p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace; margin-top: 18px; margin-right: 18px; margin-bottom: 18px; margin-left: 39px; padding-top: 7px; padding-right: 0px; padding-bottom: 7px; padding-left: 10px; outline-width: 0px; outline-style: initial; outline-color: initial; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 3px; line-height: 18px; font-family: monospace; color: #006000; font-size: 13px; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #f2f2f2; overflow-x: auto; overflow-y: auto; border-color: #d8dfea; border-style: solid;">https://graph.facebook.com/oauth/authorize?
    client_id=...&amp;
    redirect_uri=http://www.example.com/oauth_redirect&amp;perms=publish_stream,user_photos</pre>
<p>Here we pass perms parameter to set different permission and if you use the access_token after this request , you can access user photos and albums. You can see another permission popup with album and photo access.</p>
<p><a href="http://developers.facebook.com/docs/authentication/permissions" target="_blank">Here</a> is the list of such extended permissions in Facebook.</p>
<p>This is the problem when you use new Javascript SDK for graph API, or when you try to integrate these API in PHP or PERL or any other Server side scripting language from the scratch.</p>
<p>If you use new <a href="http://github.com/facebook/php-sdk/" target="_blank">Facebook PHP Graph SDK </a>, you cannot get these problems, but there is still another hidden problem if you continue testing code by the example provided by them.</p>
<p>It is my next POST . See you at there</p>
<p>Thanks</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/facebook-graph-api-the-missing-part/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Facebook Graph API for PHP</title>
		<link>http://www.sajithmr.me/facebook-graph-api-for-php</link>
		<comments>http://www.sajithmr.me/facebook-graph-api-for-php#comments</comments>
		<pubDate>Thu, 15 Jul 2010 05:29:09 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[general]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[blank page]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[install curl]]></category>
		<category><![CDATA[install json]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[pear]]></category>
		<category><![CDATA[pecl]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sdk]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=845</guid>
		<description><![CDATA[Like the old REST API, you don&#8217;t need to add 2-3 files for Facebook PHP SDK. The new graph api comes in a single file which is located at http://github.com/facebook/php-sdk/ Copy the facebook.php file in to your webroot and include this file in your php code. require_once(&#8216;facebook.php&#8217;); To work fully functional, you need CURL and [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-848" title="php" src="http://www.sajithmr.me/wp-content/uploads/2010/07/php.png" alt="php" width="346" height="226" /></p>
<p>Like the old REST API, you don&#8217;t need to add 2-3 files for Facebook PHP SDK. The new graph api comes in a single file which is located at <a href="http://github.com/facebook/php-sdk/" target="_blank">http://github.com/facebook/php-sdk/</a></p>
<p>Copy the facebook.php file in to your webroot and include this file in your php code.</p>
<p>require_once(&#8216;facebook.php&#8217;);</p>
<p>To work fully functional, you need CURL and JSON installed in your server. To check this use phpinfo() function.</p>
<p>To make sure, these missing is the main problem, add  <span style="color: #00ccff;"><span style="color: #3366ff;">exit(&#8216;Curl error&#8217;)</span>;</span> just above the line   <span style="color: #3366ff;">throw new Exception(&#8216;Facebook needs the CURL PHP extension.&#8217;); <span style="color: #000000;">in facebook.php file.</span></span></p>
<p><span style="color: #3366ff;"><span style="color: #000000;">Same for JSON.</span></span></p>
<p>The Linux way of installing CURL is :</p>
<p><strong>sudo apt-get install curl libcurl3 libcurl3-dev php5-curl</strong></p>
<p>To install JSON in your linux machine, follow <a href="http://slaptijack.com/system-administration/lets-install-json-for-php-5/" target="_blank">these</a> steps:</p>
<ol>
<li><strong>pecl install json</strong></li>
<li>Add json.ini file in /etc/php.d/</li>
<li>edit json.ini (in VI) and add this line: xtension=json.so</li>
<li>Save the file and restart appache (/etc/init.d/httpd restart)  <em>or apache2 restart depends on your linux OS</em></li>
</ol>
<p>See the example.php file in php-sdk from Github, if you call getSession function, you only get a NULL string if you are not logged in proper way. So I recommend to redirect into login page if there is no session available.</p>
<p>Here is the change:</p>
<p>if (! $facebook-&gt;getSession()) {</p>
<p>header(&#8216;Location: &#8216;.$facebook-&gt;getLoginUrl());</p>
<p>}</p>
<p>Then try the rest of the part as per example.php , it will work</p>
<p>Good Luck</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/facebook-graph-api-for-php/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP Session problem with cloud server</title>
		<link>http://www.sajithmr.me/php-session-problem-with-cloud-server</link>
		<comments>http://www.sajithmr.me/php-session-problem-with-cloud-server#comments</comments>
		<pubDate>Thu, 08 Jul 2010 09:51:58 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[$_session]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[empty]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[refresh]]></category>
		<category><![CDATA[saving]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[session not saving]]></category>
		<category><![CDATA[session_save_path]]></category>
		<category><![CDATA[session_start]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=838</guid>
		<description><![CDATA[There is a very strange issue with PHP session when you prefer session to save in files other than database (normal session). The problem is: some times you can access all the saved session values from $_SESSION and sometimes it returns a empty array. If you refresh 10 times, perhaps 4 times you will get [...]]]></description>
			<content:encoded><![CDATA[<p>There is a very strange issue with PHP session when you prefer session to save in files other than database (normal session).</p>
<p><strong>The problem</strong> is: some times you can access all the saved session values from $_SESSION and sometimes it returns a empty array.</p>
<p>If you refresh 10 times, perhaps 4 times you will get session and 6 times you will get it empty.</p>
<p>The problem is not due to domain level security or session expiry . It is due to session file location. If you run a phpinfo() function in any of your page, you can see there is a part of sessions. There you can see a session variable <strong>session_save_path </strong>and it will be pointing to /tmp/ or /etc/somefolder or /var some folder inside the linux file architecture.</p>
<p>Since at clouds, different servers server at different time, some server can see the exact saved files in that location and some server cannot. (Since /tmp etc directories are not shared among them)</p>
<p><strong>Solution</strong>:  Call the below php function and set session file path inside your web root . You need to call this function before your session_start() call</p>
<p>eg:</p>
<p><strong>session_save_path</strong>(&#8216;/mnt/stor1-wc2-dfw1/4675/5044/to/your/website/rootfolder/or/inner/directory<a style="color: #0000cc;" href="http://research.cicr.com.eg/web/content/'" target="_blank">&#8216;</a>);</p>
<p>For windows users as well, this is the solution. This problem occurs in ASP application as well.</p>
<p>Thanks</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/php-session-problem-with-cloud-server/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JBar &#8211; Jquery Bar</title>
		<link>http://www.sajithmr.me/jbar-jquery-bar</link>
		<comments>http://www.sajithmr.me/jbar-jquery-bar#comments</comments>
		<pubDate>Sun, 27 Dec 2009 11:47:33 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[Downloads]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[webworld]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[delete]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[edit]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[information]]></category>
		<category><![CDATA[jbar]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[message]]></category>
		<category><![CDATA[notification]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=545</guid>
		<description><![CDATA[Flash messages or notification messages are very essential part of every update/edit or delete operations. We either use ajax update messages like &#8220;You account has been updated&#8221; or &#8220;Your photo has been successfully deleted&#8221; Here, a new plugin of jQuery can be used to display the flash messages like twitter. (see twitter&#8217;s settings page) I [...]]]></description>
			<content:encoded><![CDATA[<p>Flash messages or notification messages are very essential part of every update/edit or delete operations. We either use ajax update messages like &#8220;You account has been updated&#8221; or &#8220;Your photo has been successfully deleted&#8221;</p>
<p>Here, a new plugin of jQuery can be used to display the flash messages like twitter. (see twitter&#8217;s settings page)</p>
<p>I added some more functions to this plugin to display the notification in different context, say information, warning or error message. The function show_flash(&#8216;message here&#8217;); can be used for this purpose. Second parameter is the type of message. For example, show_flash(&#8216;Error in deleting file&#8217;, &#8216;error&#8217;) OR  show_flash(&#8216;Email address entered is invalid&#8217;, &#8216;warning&#8217;)</p>
<p>If you use sessions to save flash message , for example in codeigniter $this-&gt;session-&gt;set_flashdata(&#8216;message&#8217;,'hello&#8217;); you can use this plugin to display them by adding a php code in the footer  (or header) of every page</p>
<p>&lt;?php if($this-&gt;session-&gt;flashdata(&#8216;message&#8217;) != &#8221; )  : ?&gt;</p>
<p>&lt;script&gt;show_flash(&#8216;&lt;?= $this-&gt;session-&gt;flashdata(&#8216;message&#8217;) ?&gt;&#8217;)&lt;/script&gt;</p>
<p>&lt;?php endif; ?&gt;</p>
<p>Here you can download the full source code:  <a href="http://www.sajithmr.me/downloads/jbar.zip">http://www.sajithmr.me/downloads/jbar.zip</a></p>
<p><img class="alignnone size-large wp-image-566" title="Screen shot 2009-12-27 at 11.30.12" src="http://www.sajithmr.me/wp-content/uploads/2009/12/Screen-shot-2009-12-27-at-11.30.12-1024x182.png" alt="Screen shot 2009-12-27 at 11.30.12" width="717" height="127" /></p>
<p>Thanks</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/jbar-jquery-bar/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Onchange, form submit &#8211; Error</title>
		<link>http://www.sajithmr.me/onchange-form-submit-error</link>
		<comments>http://www.sajithmr.me/onchange-form-submit-error#comments</comments>
		<pubDate>Mon, 09 Nov 2009 20:27:27 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[html]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[form submit]]></category>
		<category><![CDATA[onchange]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.sajithmr.me/?p=480</guid>
		<description><![CDATA[If you are facing onchange and form submit of select-box (combo box) in html, you are not alone. In sometimes onchange = &#8220;document.formname.submit()&#8221; won&#8217;t submit the form, while it works on other html pages. There is hidden truth of this problem is , there may be some other input having the name &#8220;submit&#8221;. This cause [...]]]></description>
			<content:encoded><![CDATA[<p>If you are facing onchange and form submit of <strong>select-box</strong> (combo box) in html, you are not alone.</p>
<p>In sometimes onchange = &#8220;<span style="color: #008000;"><strong>document.formname.submit()</strong></span>&#8221; won&#8217;t submit the form, while it works on other html pages.</p>
<p>There is hidden truth of this problem is , there may be some other input having the name &#8220;submit&#8221;. This cause problem in IE and some other browsers. So rename the input field name from <strong>submit</strong> to any other name (In most case we use the name of submit button as &#8220;submit&#8221;).</p>
<p>It is a rare tip,  you may  face this someday !!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/onchange-form-submit-error/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firephp</title>
		<link>http://www.sajithmr.me/firephp</link>
		<comments>http://www.sajithmr.me/firephp#comments</comments>
		<pubDate>Mon, 17 Aug 2009 22:45:46 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[firebug]]></category>
		<category><![CDATA[firephp]]></category>
		<category><![CDATA[header]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[warning]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/?p=452</guid>
		<description><![CDATA[We like firebug , We like PHP , if so, We also begin to  like FirePHP !!! Using firephp , you can debug your php code. Firephp is a firefox plugin which works on firebug console. In our php life, we know we can use echo function to print or debug the value of a [...]]]></description>
			<content:encoded><![CDATA[<p>We like firebug , We like PHP , if so, We also begin to  like FirePHP !!!</p>
<p>Using firephp , you can debug your php code. Firephp is a firefox plugin which works on firebug console.</p>
<p><a href="http://www.sajithmr.com/wp-content/uploads/2009/08/firebug-extlist-firephp.png"><img class="alignnone size-full wp-image-453" title="firebug-extlist-firephp" src="http://www.sajithmr.com/wp-content/uploads/2009/08/firebug-extlist-firephp.png" alt="" width="422" height="457" /></a></p>
<p>In our php life, we know we can use echo function to print or debug the value of a variable and we usually do that. But if there is any header function such as image manipulation, redirection etc, if you use echo or print either it leads into unwanted results or we get the common error, cannot modify header information headers already sent  !!!</p>
<p>The one solution for this is, writing the variable value into a log file and check the log file after execution. But the advantage of fire php is, you can log messages, or value of a variable and can see through firebug console.</p>
<p>For example:</p>
<p>&lt;?php $fire_php-&gt;log(&#8216;Enter into function&#8217;); ?&gt;</p>
<p>&lt;?php $fire_php-&gt;log($result); ?&gt;</p>
<p>You can also categorize your error as warning or error . eg:</p>
<p>&lt;?php $fire_php-&gt;warn(&#8216;Variable value is not set&#8217;)?&gt; or</p>
<p>&lt;?php $fire_php-&gt;error(&#8216;No parameter passed&#8217;) ?&gt;</p>
<p>For more go to: <a style="text-decoration: none;" href="http://www.firephp.org/">http://www.firephp.org/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/firephp/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Google Chrome</title>
		<link>http://www.sajithmr.me/google-chrome</link>
		<comments>http://www.sajithmr.me/google-chrome#comments</comments>
		<pubDate>Wed, 03 Sep 2008 15:22:07 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[webworld]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[chrash]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[flop]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[mozilla]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/google-chrome/</guid>
		<description><![CDATA[10 Features of Google Chrome &#8211; Youtube Video [youtube:http://in.youtube.com/watch?v=Xlh8gSF_hhE] Yes, a browser with very simple layout. The features i like in this new browser is its full screee view. The only thing in the top area is the location bar. No other menus or buttons or panels are there. It gives a comfort feeling. (All [...]]]></description>
			<content:encoded><![CDATA[<h3>10 Features of Google Chrome &#8211; Youtube Video</h3>
<p>[youtube:http://in.youtube.com/watch?v=Xlh8gSF_hhE]</p>
<p>Yes, a browser with very simple layout. The features i like in this new browser is its full screee view. The only thing in the top area is the location bar. No other menus or buttons or panels are there. It gives a comfort feeling. (All other browsers are very congested )</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/09/03pogue_span.jpg" alt="The Competition is started" width="467" height="202" /></p>
<p>Another feature i like to see was that task manager. I was searching for such a plugin in mozilla. Which tabs takes more memory , more internet resources etc. And we can even end the process . Good approach google. Hats off.</p>
<p>The next feature i like is downloading files. It never ask for location for saving. After download you can save as you wish (You can drag the downloaded file anywhere in your computer ). So when you want to download , just download it !!!</p>
<p>On the very first day, i got a crashed warning message from chrome while i browsing !!!</p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/09/crashed2.JPG" alt="Google Chrome Crashed" /></p>
<p>But there was option to restart, so saved  all the tabs.</p>
<p>Another feature i liked is it error display mechanism. It shows proper error and proper solution just like google style <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/09/error.JPG" alt="Dns Error Chrome" width="525" height="183" /></p>
<p>One feature i expect was the warning before closing tabs. When i closed the browser, all the tab get closed without any warning.. I think firefox made me to think like this .</p>
<p>And in option , you can see the saved passwords (without any masking !!!) .  That is a bad feature i think.Lets expect more features in the coming update .</p>
<p>And about wordpress editor; some of the functions of WYSWUG wordpress editor is not working with chrome. I think this is because of the javascript compatibility  .</p>
<p>From a developer angle , i got one more browser to test a webpage  (How it appears after changing the html, javascript and css )</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/google-chrome/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The biggest blunder I ever made with PHP</title>
		<link>http://www.sajithmr.me/the-blunder-i-ever-made-with-php</link>
		<comments>http://www.sajithmr.me/the-blunder-i-ever-made-with-php#comments</comments>
		<pubDate>Sat, 12 Jul 2008 04:41:03 +0000</pubDate>
		<dc:creator>Mr Me</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[blunder]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[localhost]]></category>
		<category><![CDATA[made]]></category>
		<category><![CDATA[mistake]]></category>
		<category><![CDATA[recursive]]></category>

		<guid isPermaLink="false">http://www.sajithmr.com/the-blunder-i-ever-made-with-php/</guid>
		<description><![CDATA[I was writing a php code to parse images from a particular url . At the begining I used http://www.google.com as a testing url. When I tested the php code from my local machine (http://localhost) it took time to get data from a remote url (google.com) . So I decided to check this code with [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.sajithmr.com/wp-content/uploads/2008/07/avoidance300.jpg" alt="Blunder I ever made" style="margin: 10px; float: left" /></p>
<p>I was writing a php code to parse images from a particular url . At the begining I  used http://www.google.com as a testing url.</p>
<p>When I tested the php code from my local machine (http://localhost) it took time to get data from a remote url (google.com) . So I decided to check this code with my locally testing web page. So i write the code as bellow :</p>
<p>file: index.php</p>
<p>&lt;?php</p>
<p>$content = file_get_contents(&#8220;http://localhost/&#8221;);</p>
<p>// parse($content);</p>
<p>?&gt;</p>
<p>This is the biggest  mistake I made that day. Did you find the mistake ??  Else try this code with your local machine. You can see your big blunder . Not only you, your system also will get hang .. <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Because this is the longest recursive call you can call with your web server !!!</p>
<p>Regards</p>
<p>Sajith</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sajithmr.me/the-blunder-i-ever-made-with-php/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

