<?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>Anil Natha [dot] com</title>
	<atom:link href="http://www.anilnatha.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anilnatha.com</link>
	<description>Who says being a nerd can&#039;t be fun???</description>
	<lastBuildDate>Sat, 27 Aug 2011 02:29:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Acura&#8217;s 25th Anniversary</title>
		<link>http://www.anilnatha.com/2011/08/26/acura-25th-anniversary-honda-museum-tour/</link>
		<comments>http://www.anilnatha.com/2011/08/26/acura-25th-anniversary-honda-museum-tour/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 22:18:20 +0000</pubDate>
		<dc:creator>Anil</dc:creator>
				<category><![CDATA[Cars]]></category>
		<category><![CDATA[acura]]></category>
		<category><![CDATA[honda]]></category>

		<guid isPermaLink="false">http://www.anilnatha.com/2011/08/26/acura-25th-anniversary-honda-museum-tour/</guid>
		<description><![CDATA[Many years ago I laid eyes on a car that I cherish very much even to this day. Little did I know at the time that my love for that car would turn into an affinity for a brand that continues to capture the souls of auto lovers young and old. This year, Acura celebrated [...]]]></description>
			<content:encoded><![CDATA[<p>Many years ago I laid eyes on a car that I cherish very much even to this day. Little did I know at the time that my love for that car would turn into an affinity for a brand that continues to capture the souls of auto lovers young and old.  This year, Acura celebrated its 25th anniversary.  I had the privilege of attending an event to celebrate this event at Amercian Honda Headquarters in Torrance, California to learn about Acura’s accomplishments over the years.  The event also consisted of a tour of the Honda Museum which is closed to the public and a ride and drive event to get behind the wheel of Acura’s current model lineup.</p>
<h2>Firsts</h2>
<p>Acura was the first Japanese luxury automotive brand with the introduction of the 1986 Acura Legend and the 1986 Acura Integra.  Over the years they have released many vehicles consisting of a number of firsts in the automotive industry including:</p>
<ul>
<li>First Variable Valve Timing system (VTEC®)</li>
<li>First Drive-By-Wire™ (DBW) throttle system</li>
<li>First 4-channel ABS system</li>
<li>First all-aluminum bodied production vehicle</li>
<li>First production use of titanium connecting rods</li>
<li>First in-dash navigation system</li>
<li>First import luxury brand to design, engineer &#038; assemble vehicles in the US</li>
<li>First dual-stage driver and passenger side airbags</li>
<li>First XM® Satellite Radio as standard equipment</li>
<li>First Bluetooth® HandsFreeLink® technology as standard equipment</li>
<li>First Advanced Compatibility Engineering (ACE™)</li>
<li>First satellite-linked real-time traffic system</li>
<li>First torque-vectoring all-wheel-drive system (SH-AWD®)</li>
<li>First NHTSA 5-star safety rated line-up</li>
<li>First IIHS Top Safety Pick rated line-up</li>
<li>First in-vehicle real-time weather tracking system</li>
<li>First 3-row luxury SUV</li>
</ul>
<p>These firsts have led to the production of some remarkable vehicles that are on the want-lists of many enthusiasts long after their production has ceased like the Acura Integra Type-R and the Acura NSX.  Only time will tell what next great edition of sports car we enthusiasts will be drooling over.</p>
<h2>Honda Museum Tour</h2>
<p>A kid in a candy store is how I would describe visiting the Honda Museum.  I was very honored to be allowed to view and photograph the vehicles stored in the Museum, many of which I had only seen on TV or in photographs in car magazines, but here I was standing inches away from vehicles that garnished observant stares from car enthusiasts at many a car show.  I’ll let the pictures do the rest of the talking…</p>
<div style="padding: 0; overflow: hidden; margin: 0; width: 500px;"><a href="http://www.flickr.com/photos/anilnatha/6083444605/in/set-72157627401344889/" title="Honda Signage" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6088/6083444605_5f068cd1d3_s.jpg" alt="Honda Signage" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083444653/in/set-72157627401344889/" title="Dave Heath" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6206/6083444653_93e3588c04_s.jpg" alt="Dave Heath" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083444703/in/set-72157627401344889/" title="Honda Musuem Entrance Display" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6090/6083444703_38a6edd276_s.jpg" alt="Honda Musuem Entrance Display" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083444855/in/set-72157627401344889/" title="Honda Musuem Entrance Display" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6207/6083444855_2cbeb1fe7f_s.jpg" alt="Honda Musuem Entrance Display" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083444931/in/set-72157627401344889/" title="Kid at the entrace to a candy store" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6202/6083444931_3552975fa9_s.jpg" alt="Kid at the entrace to a candy store" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083989050/in/set-72157627401344889/" title="Historic Path" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6209/6083989050_013ea3b94b_s.jpg" alt="Historic Path" style="padding: 0 0 10px 0; width: 75px; height: 75px; float: left;"/></a><br clear="all" /><a href="http://www.flickr.com/photos/anilnatha/6083446261/in/set-72157627401344889/" title="Honda N-600" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6206/6083446261_001cbb5da8_s.jpg" alt="Honda N-600" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083988292/in/set-72157627401344889/" title="Honda N-600" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6076/6083988292_3bb71475c7_s.jpg" alt="Honda N-600" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083988898/in/set-72157627401344889/" title="Honda Z-600" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6085/6083988898_3d092516ca_s.jpg" alt="Honda Z-600" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083446115/in/set-72157627401344889/" title="1979 Honda Civic" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6184/6083446115_f8fdfaf6f9_s.jpg" alt="1979 Honda Civic" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083988718/in/set-72157627401344889/" title="" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6066/6083988718_e72e44c46e_s.jpg" alt="" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083989754/in/set-72157627401344889/" title="1986 Acura Legend" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6069/6083989754_8e887d7db0_s.jpg" alt="1986 Acura Legend" style="padding: 0 0 10px 0; width: 75px; height: 75px; float: left;"/></a><br clear="all" /><a href="http://www.flickr.com/photos/anilnatha/6083989694/in/set-72157627401344889/" title="1990 Acura Integra" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6073/6083989694_877a14d484_s.jpg" alt="1990 Acura Integra" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083446899/in/set-72157627401344889/" title="Acura Integra Type-R" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6204/6083446899_bb9c85a2b0_s.jpg" alt="Acura Integra Type-R" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083446825/in/set-72157627401344889/" title="Acura Integra Type-R" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6181/6083446825_ac38d991fa_s.jpg" alt="Acura Integra Type-R" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083987588/in/set-72157627401344889/" title="Dave Heath" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6201/6083987588_3893c12a2a_s.jpg" alt="Dave Heath" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083446709/in/set-72157627401344889/" title="Acura NSX" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6081/6083446709_6f013ed263_s.jpg" alt="Acura NSX" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083989254/in/set-72157627401344889/" title="Acura NSX" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6064/6083989254_92b759a72b_s.jpg" alt="Acura NSX" style="padding: 0 0 10px 0; width: 75px; height: 75px; float: left;"/></a><br clear="all" /><a href="http://www.flickr.com/photos/anilnatha/6083989322/in/set-72157627401344889/" title="Acura NSX" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6064/6083989322_f17e71ab07_s.jpg" alt="Acura NSX" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083989398/in/set-72157627401344889/" title="Dave Heath" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6087/6083989398_a0dbb8742a_s.jpg" alt="Dave Heath" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083445817/in/set-72157627401344889/" title="Acura NSX Motor" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6064/6083445817_9c7574bc5e_s.jpg" alt="Acura NSX Motor" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083445555/in/set-72157627401344889/" title="Mugen CR-X" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6200/6083445555_984fe5f742_s.jpg" alt="Mugen CR-X" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083987352/in/set-72157627401344889/" title="Show of power" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6200/6083987352_f1e8ddfdfd_s.jpg" alt="Show of power" style="padding: 0 10px 10px 0; width: 75px; height: 75px; float: left;"/></a><a href="http://www.flickr.com/photos/anilnatha/6083445873/in/set-72157627401344889/" title="" style="text-decoration: none;"><img src="http://farm7.static.flickr.com/6187/6083445873_fed714dc7c_s.jpg" alt="" style="padding: 0 0 10px 0; width: 75px; height: 75px; float: left;"/></a><br clear="all" /></div>
<div style="font-size: 0.8em; margin-top: 0px; margin-bottom: 5px">
<p><a href="http://www.flickr.com/photos/anilnatha/sets/72157627401344889/">Acura 25th Anniversary &#8211; Honda Museum Tour</a>, a set on Flickr.</p>
</div>
<h2>Ride &#038; Drive</h2>
<p>The ride and drive was a fun and reassuring way to end the anniversary celebration.  Many enthusiasts are on the edge of their seat waiting for the next exhilarating sports car to adorn the Acura moniker, but that isn’t to say that Acura’s current lineup isn’t worthy of recognition and accolade.  Acura has and continues to refine vehicles like the TL and TSX into vehicles that bridge the gap between economy and über luxury by providing consumers with vehicles that offer luxury features at an affordable price without sacrificing reliability and the prestige that comes along with owning a luxury car.</p>
<p>Of all the vehicles I drove at the event, two captured my attention.  The first being the Acura TSX consisting of a 2.4-liter 4-cylinder matted to a 6-speed manual.  My love for the Integra GS-R Sedan, which was only available with a manual transmission, was probably why I felt so at home in this configuration of a TSX.  At the lower end of the Acura lineup, the TSX offers luxury features while still performing as a nimble and sporty family sedan.  The second vehicle I was happy with was the TSX Sport Wagon that also consisted of the 2.4-liter motor, but instead is matted to a 5-speed automatic with paddle-shifters.</p>
<p>Simple and classy in appearance, yet advanced in its features, the TSX is a great entry level luxury vehicle consisting of features you would expect in a luxury vehicle like leather seating, Bluetooth, iPod Integration, navigation, real-time traffic and weather information, and memory seats. Another top concern at Acura is safety that is met with features like HID headlights, Tire Pressure Monitoring, a six-airbag system consisting of sensors in the front passenger seat that can detect the type of occupant seated to avoid injury due to air bag inflation among many other safety enhancements to protect occupants.   If I were to buy an Acura vehicle today, it would be either of these two, now if only the TSX Sport Wagon was offered with a manual transmission. <img src='http://www.anilnatha.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>If you haven’t gone out and test-driven an Acura TSX, I highly recommend you do so.</p>
<p>Here is a short video describing the event&#8230;</p>
<p><iframe width="560" height="345" src="http://www.youtube.com/embed/b1akDvxEwbk" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.anilnatha.com/2011/08/26/acura-25th-anniversary-honda-museum-tour/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPad (second generation): Poor speaker location</title>
		<link>http://www.anilnatha.com/2011/07/24/what-were-they-thinking-ipad2-speaker-location/</link>
		<comments>http://www.anilnatha.com/2011/07/24/what-were-they-thinking-ipad2-speaker-location/#comments</comments>
		<pubDate>Sun, 24 Jul 2011 18:15:37 +0000</pubDate>
		<dc:creator>Anil</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[ipad2]]></category>

		<guid isPermaLink="false">http://www.anilnatha.com/?p=123</guid>
		<description><![CDATA[As many of my friends know, I have a love-hate relationship with Apple. I own a multitude of their products that include an iMac, Macbook Pro, iPhone, iPod and now an iPad2. There are many things that I really do enjoy about their products, but equally so, there are many things that make me ask [...]]]></description>
			<content:encoded><![CDATA[<p>As many of my friends know, I have a love-hate relationship with Apple.  I own a multitude of their products that include an iMac, Macbook Pro, iPhone, iPod and now an iPad2.  There are many things that I really do enjoy about their products, but equally so, there are many things that make me ask &#8220;What were they thinking?!&#8221;. This is one of them&#8230;</p>
<p>Would you want a TV that had speakers in the back of it, facing away from you? &#8211; Probably not.<br />
Would you want a car that had speakers facing outwards instead of towards the interior cabin? &#8211; Uhhhh, No.<br />
Would you wear headphones that pointed away from your ear? &#8211; Is this a joke?</p>
<p>So what compelled the design team at Apple to place the speaker for the second generation iPad on the back of it so that it faces away from the person using the device? Makes you wonder if they thought that through.  Maybe there is some compelling reason, but from a usability standpoint, makes no sense to me.  Thank you Apple for yet another <em>brilliant</em> design.</p>
<p>I&#8217;ll post a more thorough review of the iPad2 soon&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anilnatha.com/2011/07/24/what-were-they-thinking-ipad2-speaker-location/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quickly, and easily, view hidden files in OS X</title>
		<link>http://www.anilnatha.com/2011/05/31/quickly-and-easily-view-hidden-files-in-os-x/</link>
		<comments>http://www.anilnatha.com/2011/05/31/quickly-and-easily-view-hidden-files-in-os-x/#comments</comments>
		<pubDate>Tue, 31 May 2011 19:18:01 +0000</pubDate>
		<dc:creator>Anil</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[automator]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://www.anilnatha.com/?p=108</guid>
		<description><![CDATA[Every now and then a come across a new trick to make my life a little easier within OS X. This post is about yet another. Displaying hidden files in Windows was relatively easy. Simply update an option in your settings and you get to see all your hidden files with the potential to mess [...]]]></description>
			<content:encoded><![CDATA[<p>Every now and then a come across a new trick to make my life a little easier within OS X.  This post is about yet another.  Displaying hidden files in Windows was relatively easy.  Simply update an option in your settings and you get to see all your hidden files with the potential to mess everything up on your machine to your hearts content.  So why should it be any different on OS X.  Ahhhh but it is.  To view hidden files on OS X you had to go into Terminal, run a pair of commands to display the files, and when you&#8217;re done doing whatever you needed to do, run a set of commands again to hide the hidden files, again.  I had been doing this ever since I switched to Mac.  Until a couple weeks ago when I came across <a href="http://www.macosxtips.co.uk/index_files/quickly-show-hidden-files.php" target="_blank">this handy tutorial</a> written by <a href="http://www.matt-swain.com/">Matt Swain</a>.</p>
<p>At the time of this post, these instructions, and other information about this topic, could be found on Matt&#8217;s <a href="http://www.macosxtips.co.uk/">Mac OS X Tips Website</a>, but just in case a black hole were to ever absorb the site, I&#8217;ve included the instructions to create a keyboard shortcut using Automator below, but credit is due to Matt for his helpful post.</p>
<div class="info_box">While Apple helpfully provided a keyboard shortcut for use in open and save dialogs, they didn’t do the same for normal Finder windows. Luckily, it’s not too tricky to set up a keyboard shortcut yourself.</p>
<p>To start, open up Automator (in the Applications folder) and choose a Service template. From the library choose &#8220;Run Shell Script&#8221; and drag it across to the workflow area. In the text box paste the following command:</p>
<pre class="brush: plain; title: ;">STATUS=`defaults read com.apple.finder AppleShowAllFiles`
if [ $STATUS == YES ];
then
    defaults write com.apple.finder AppleShowAllFiles NO
else
    defaults write com.apple.finder AppleShowAllFiles YES
fi
killall Finder</pre>
<p>Finally, change the &#8220;text&#8221; drop-down menu to “no input” and then save you workflow as “Toggle Hidden Files”.</p>
<p>Now if you go to the Finder menu and look under Services, you should find a “Toggle Hidden Files” option. To add the keyboard shortcut, go to the Keyboard section of System Preferences and click the Keyboard shortcuts tab. Select Services from the list on the left, then scroll down to the bottom of the list on the right to find “Toggle Hidden Files”. Double-click on the area to the right of it, then press the keyboard shortcut you want. I used Command-Shift-. (dot).</div>
]]></content:encoded>
			<wfw:commentRss>http://www.anilnatha.com/2011/05/31/quickly-and-easily-view-hidden-files-in-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery script to handle textarea maxlength</title>
		<link>http://www.anilnatha.com/2011/05/17/handy-jquery-script-to-handle-textarea-maxlength/</link>
		<comments>http://www.anilnatha.com/2011/05/17/handy-jquery-script-to-handle-textarea-maxlength/#comments</comments>
		<pubDate>Tue, 17 May 2011 06:03:41 +0000</pubDate>
		<dc:creator>Anil</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[form]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[maxlength]]></category>
		<category><![CDATA[textarea]]></category>
		<category><![CDATA[validation]]></category>

		<guid isPermaLink="false">http://www.anilnatha.com/?p=98</guid>
		<description><![CDATA[I was editing a form this evening and got to a point where I needed to limit the amount of text being entered into a textarea. As always, no matter what you do on the front-end you should always validate your inputs on the backend which I was doing. However, I wanted a simple way [...]]]></description>
			<content:encoded><![CDATA[<p>I was editing a form this evening and got to a point where I needed to limit the amount of text being entered into a textarea.  As always, no matter what you do on the front-end you should always validate your inputs on the backend which I was doing.  However, I wanted a simple way to display this limitation to the user.  jQuery to the rescue!<br />
<span id="more-98"></span><br />
As you know, maxlength is not supported in HTML4 and earlier.  So of course the first thing I checked was Google.  I found a very handy script written by <a href="http://that-matt.com/">Matt Button</a> that provides just the functionality I needed, and more.  You can read about and see <a href="http://that-matt.com/2010/04/updated-textarea-maxlength-with-jquery-plugin/">the script</a> in action on Matt&#8217;s site.</p>
<p>Thanks Matt!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anilnatha.com/2011/05/17/handy-jquery-script-to-handle-textarea-maxlength/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP function, file_get_contents, fails with HTTPS URL</title>
		<link>http://www.anilnatha.com/2011/05/01/file_get_contents-fails-with-https-url/</link>
		<comments>http://www.anilnatha.com/2011/05/01/file_get_contents-fails-with-https-url/#comments</comments>
		<pubDate>Sun, 01 May 2011 23:13:51 +0000</pubDate>
		<dc:creator>Anil</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.anilnatha.com/?p=51</guid>
		<description><![CDATA[I finally got my site up and running last week using a theme I had purchased. One of the features of the theme is that it displays my total number of RSS subscribers and Twitter followers. Unfortunately, the call to pull my RSS subscriber count was producing the following error: [Sat Apr 30 20:21:46 2011] [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got my site up and running last week using a theme I had purchased.  One of the features of the theme is that it displays my total number of RSS subscribers and Twitter followers.  Unfortunately, the call to pull my RSS subscriber count was producing the following error:</p>
<pre class="brush: plain; title: ;">[Sat Apr 30 20:21:46 2011] [error] [client XXX.XXX.XXX.XXX] PHP Warning:  file_get_contents() [&lt;a href='function.file-get-contents'&gt;function.file-get-contents&lt;/a&gt;]: SSL: fatal protocol error in /PATH/TO/SCRIPT/PRODUCING/ERROR on line 3</pre>
<p>So after taking a look at the code, I found that the problem was the URL being passed to the file_get_contents function.  An HTTPS URL was being passed to the function.  So the first thing I did was check the URL.  Using Firefox I visited the URL using the HTTPS and the HTTP protocol, both of which worked.  So I tried the function call again and the HTTPS URL would consistently fail, but the HTTP URL worked just fine.</p>
<p>After doing some research, I found that others were also having the same problem with the HTTPS protocol when used with the function.  Some stated the issue is that OPENSSL is not configured on your hosting platform.  So, I contacted my hosting provider to check if that was the case, which it was not, so scratch that off the list.</p>
<p>However, my hosting provider did share with me a very helpful link that I had also come across during my initial research that outlined a helpful script to get around the issue.  The poster of that script was having the same issue as I was with an HTTPS call using file_get_contents.  However, I didn&#8217;t want to implement the fix just yet because I was still unclear as to why the HTTPS call was failing and I wanted to get to the root of the issue first.  So I visited the <a href="http://php.net/manual/en/function.file-get-contents.php">documentation page</a> for the function and learned something interesting.</p>
<p>An important note on the documentation page for file_get_contents:</p>
<div class="warning_box">When using SSL, Microsoft IIS will violate the protocol by closing the connection without sending a close_notify indicator. PHP will report this as &#8220;SSL: Fatal Protocol Error&#8221; when you reach the end of the data. To work around this, the value of error_reporting should be lowered to a level that does not include warnings. PHP 4.3.7 and higher can detect buggy IIS server software when you open the stream using the https:// wrapper and will suppress the warning. When using fsockopen() to create an ssl:// socket, the developer is responsible for detecting and suppressing this warning.</div>
<p>Jackpot!  So there are two things that could be happening:</p>
<ul class="list-note">
<li>It&#8217;s entirely possible that the URL I was using was being served by a Microsoft IIS Server.  This was the only explanation I could derive from the issue I was experiencing since I had no information regarding the server itself.  And from what I can tell, the reason others were claiming HTTPS calls with file_get_contents worked is that they may have been making calls to a non MS IIS Server, but without further information from those individuals it is hard to say.</li>
<li>There is also the chance that the server I visiting to pull the feed information could be handling requests differently based on the user agent information in the headers of the request.</li>
</ul>
<p>In any case, using the script I eluded to earlier, I think I can fix the issue very easily.  The <a href="http://blogs.digitss.com/php/php-downloading-a-file-from-secure-website-https-using-curl">script</a>, written by Dharmavirsinh Jhala, uses a call using CURL to get the contents of the file.  After reworking the RSS subscriber information on my site to make use of this script, I can confidently say that it gets around the issue while still being able to utilize an HTTPS call, and to be honest, is a good way to avoid having to deal with the issue in the first place.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anilnatha.com/2011/05/01/file_get_contents-fails-with-https-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Liftoff!</title>
		<link>http://www.anilnatha.com/2011/04/18/knock-knock/</link>
		<comments>http://www.anilnatha.com/2011/04/18/knock-knock/#comments</comments>
		<pubDate>Mon, 18 Apr 2011 02:56:27 +0000</pubDate>
		<dc:creator>Anil</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.anilnatha.com/?p=6</guid>
		<description><![CDATA[Finally back up and running after a long hiatus&#8230;]]></description>
			<content:encoded><![CDATA[<p>Finally back up and running after a long hiatus&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anilnatha.com/2011/04/18/knock-knock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

