<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for Andrew's Tech Musings</title>
	<atom:link href="http://andrewcurioso.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrewcurioso.com</link>
	<description>Tech, Social Media, PHP, Opinions</description>
	<lastBuildDate>Fri, 16 Jul 2010 14:22:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>Comment on Detecting file size overflow in PHP by Andrew Curioso</title>
		<link>http://andrewcurioso.com/2010/06/detecting-file-size-overflow-in-php/comment-page-1/#comment-441</link>
		<dc:creator>Andrew Curioso</dc:creator>
		<pubDate>Fri, 16 Jul 2010 14:22:52 +0000</pubDate>
		<guid isPermaLink="false">http://andrewcurioso.com/?p=232#comment-441</guid>
		<description>Hi okjiko,

Because we are first checking to see if REQUEST_METHOD is POST: the CONTENT_LENGTH value should always be set.

However, it is up to the web server to set CONTENT_LENGTH and it is notable that old versions of Apache (and possible other web servers) do not set it. For these servers, the code in this article will not work (that code in the previous comment will produce a false positive) and it may be a good idea to fall back to the &quot;processed=1&quot; method mentioned in the PHP documentation for those browsers.</description>
		<content:encoded><![CDATA[<p>Hi okjiko,</p>
<p>Because we are first checking to see if REQUEST_METHOD is POST: the CONTENT_LENGTH value should always be set.</p>
<p>However, it is up to the web server to set CONTENT_LENGTH and it is notable that old versions of Apache (and possible other web servers) do not set it. For these servers, the code in this article will not work (that code in the previous comment will produce a false positive) and it may be a good idea to fall back to the &#8220;processed=1&#8243; method mentioned in the PHP documentation for those browsers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Detecting file size overflow in PHP by okjiko</title>
		<link>http://andrewcurioso.com/2010/06/detecting-file-size-overflow-in-php/comment-page-1/#comment-439</link>
		<dc:creator>okjiko</dc:creator>
		<pubDate>Fri, 16 Jul 2010 09:42:51 +0000</pubDate>
		<guid isPermaLink="false">http://andrewcurioso.com/?p=232#comment-439</guid>
		<description>I may use the condition in a wrong way, but as far as I am concerned, I&#039;ve added  &amp;&amp; isset($_SERVER[&#039;CONTENT_LENGTH&#039;]) to the condition :

if (
 $_SERVER[&#039;REQUEST_METHOD&#039;] == &#039;POST&#039;
 &amp;&amp; empty($_POST)
 &amp;&amp; empty($_FILES)
 &amp;&amp; isset($_SERVER[&#039;CONTENT_LENGTH&#039;])//here
 &amp;&amp; $_SERVER[&#039;CONTENT_LENGTH&#039;] &gt; 0 )

because the index CONTENT_LENGTH doesn&#039;t exist when the page is loaded in the first place.

Hope that helps</description>
		<content:encoded><![CDATA[<p>I may use the condition in a wrong way, but as far as I am concerned, I&#8217;ve added  &amp;&amp; isset($_SERVER['CONTENT_LENGTH']) to the condition :</p>
<p>if (<br />
 $_SERVER['REQUEST_METHOD'] == &#8216;POST&#8217;<br />
 &amp;&amp; empty($_POST)<br />
 &amp;&amp; empty($_FILES)<br />
 &amp;&amp; isset($_SERVER['CONTENT_LENGTH'])//here<br />
 &amp;&amp; $_SERVER['CONTENT_LENGTH'] &gt; 0 )</p>
<p>because the index CONTENT_LENGTH doesn&#8217;t exist when the page is loaded in the first place.</p>
<p>Hope that helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on 5 things about PHP 5.3 that make me smile by Sean</title>
		<link>http://andrewcurioso.com/2009/06/5-things-about-php-53-that-make-me-smile/comment-page-1/#comment-18</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Tue, 07 Jul 2009 01:38:46 +0000</pubDate>
		<guid isPermaLink="false">http://andrewcurioso.com/?p=89#comment-18</guid>
		<description>I was pretty excited about the ternary shortcut, because I&#039;m always writing code like this to give an array index a default value if it&#039;s not always set:

$a[&#039;foo&#039;] = !empty($a[&#039;foo&#039;]) ? $a[&#039;foo&#039;] : &#039;Bar&#039;;

Sadly this just doesn&#039;t work with the new shortcut.

$a[&#039;foo&#039;] = $a[&#039;foo&#039;] ?: &#039;Bar&#039;;

As PHP issues a warning if &#039;foo&#039; isn&#039;t set. Too bad. :(</description>
		<content:encoded><![CDATA[<p>I was pretty excited about the ternary shortcut, because I&#8217;m always writing code like this to give an array index a default value if it&#8217;s not always set:</p>
<p>$a['foo'] = !empty($a['foo']) ? $a['foo'] : &#8216;Bar&#8217;;</p>
<p>Sadly this just doesn&#8217;t work with the new shortcut.</p>
<p>$a['foo'] = $a['foo'] ?: &#8216;Bar&#8217;;</p>
<p>As PHP issues a warning if &#8216;foo&#8217; isn&#8217;t set. Too bad. <img src='http://andrewcurioso.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Drop shadow tricks in Flex by zzingo</title>
		<link>http://andrewcurioso.com/2009/06/drop-shadow-tricks-in-flex/comment-page-1/#comment-12</link>
		<dc:creator>zzingo</dc:creator>
		<pubDate>Thu, 25 Jun 2009 23:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://andrewcurioso.com/?p=53#comment-12</guid>
		<description>thanks.useful!
z</description>
		<content:encoded><![CDATA[<p>thanks.useful!<br />
z</p>
]]></content:encoded>
	</item>
</channel>
</rss>
