<?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 Casey A. McLaughlin</title>
	<atom:link href="http://www.caseymclaughlin.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.caseymclaughlin.com</link>
	<description>Online Portfolio</description>
	<lastBuildDate>Wed, 16 Dec 2009 20:08:50 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on CodeIgniter Preflight Checker by McLaughlin Casey</title>
		<link>http://www.caseymclaughlin.com/2009/06/codeigniter-preflight-checker/comment-page-1/#comment-282</link>
		<dc:creator>McLaughlin Casey</dc:creator>
		<pubDate>Wed, 16 Dec 2009 20:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.caseymclaughlin.com/?p=84#comment-282</guid>
		<description>Wow.. Double fail on my part to your comment. 

1. Sorry about the massive delay in response.

2. The get_bytes function is another function I wrote that shouldn&#039;t have been included with the example:  I would use the following code instead:

&lt;code&gt;
//...
if (get_ini_max_memory() &lt; 33554432)
/...
&lt;/code&gt;

...and then include this function somewhere in your sourcecode:

&lt;code&gt;
function get_ini_max_memory()
{
	$value = trim(ini_get(&#039;memory_limit&#039;));
	
	$suffix = strtolower(substr($value, strlen($value)-1));
	$prefix = substr($value, 0, strlen($value)-1);
	
	//PHP.ini sometimes stores values as &quot;2g&quot; or &quot;3k&quot;.  If the value is stored that
	//way, then convert it here
	if ($suffix == &#039;k&#039;)
		$output = $prefix * 1024;
	elseif ($suffix == &#039;m&#039;)
		$output = $prefix * 1048576;
	elseif ($suffix == &#039;g&#039;)
		$output = $prefix * 1073741824;
	else
		$output = $value;
	
	return $output;
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Wow.. Double fail on my part to your comment. </p>
<p>1. Sorry about the massive delay in response.</p>
<p>2. The get_bytes function is another function I wrote that shouldn&#8217;t have been included with the example:  I would use the following code instead:</p>
<p><code><br />
//...<br />
if (get_ini_max_memory() &lt; 33554432)<br />
/...<br />
</code></p>
<p>&#8230;and then include this function somewhere in your sourcecode:</p>
<p><code><br />
function get_ini_max_memory()<br />
{<br />
	$value = trim(ini_get('memory_limit'));</p>
<p>	$suffix = strtolower(substr($value, strlen($value)-1));<br />
	$prefix = substr($value, 0, strlen($value)-1);</p>
<p>	//PHP.ini sometimes stores values as "2g" or "3k".  If the value is stored that<br />
	//way, then convert it here<br />
	if ($suffix == 'k')<br />
		$output = $prefix * 1024;<br />
	elseif ($suffix == 'm')<br />
		$output = $prefix * 1048576;<br />
	elseif ($suffix == 'g')<br />
		$output = $prefix * 1073741824;<br />
	else<br />
		$output = $value;</p>
<p>	return $output;<br />
}<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Teaching PHP: Course Curriculum by David Pearson</title>
		<link>http://www.caseymclaughlin.com/2009/08/teaching-php-course-curriculum/comment-page-1/#comment-239</link>
		<dc:creator>David Pearson</dc:creator>
		<pubDate>Sat, 05 Dec 2009 23:45:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.caseymclaughlin.com/?p=108#comment-239</guid>
		<description>This is my third semester (over 6 years) teaching a PHP course at Santa Rosa Junior College.  Here&#039;s a link the the current class web site, http://www.santarosa.edu/~dpearson/2009fall/cs5513/ .  This is first time we&#039;ve offered it as an online class and it is working more like an instructor led correspondence course.</description>
		<content:encoded><![CDATA[<p>This is my third semester (over 6 years) teaching a PHP course at Santa Rosa Junior College.  Here&#8217;s a link the the current class web site, <a href="http://www.santarosa.edu/~dpearson/2009fall/cs5513/" rel="nofollow">http://www.santarosa.edu/~dpearson/2009fall/cs5513/</a> .  This is first time we&#8217;ve offered it as an online class and it is working more like an instructor led correspondence course.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on CodeIgniter Preflight Checker by deadelvis</title>
		<link>http://www.caseymclaughlin.com/2009/06/codeigniter-preflight-checker/comment-page-1/#comment-111</link>
		<dc:creator>deadelvis</dc:creator>
		<pubDate>Tue, 27 Oct 2009 23:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.caseymclaughlin.com/?p=84#comment-111</guid>
		<description>Thanks for the great example.
Where is the get_bytes function coming from though?

Fatal error: Call to undefined function get_bytes()</description>
		<content:encoded><![CDATA[<p>Thanks for the great example.<br />
Where is the get_bytes function coming from though?</p>
<p>Fatal error: Call to undefined function get_bytes()</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Fixed GeSHI for CodeIgniter Link by Hans Meyer</title>
		<link>http://www.caseymclaughlin.com/2009/09/fixed-geshi-for-codeigniter-link/comment-page-1/#comment-55</link>
		<dc:creator>Hans Meyer</dc:creator>
		<pubDate>Wed, 23 Sep 2009 23:38:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.caseymclaughlin.com/?p=119#comment-55</guid>
		<description>WTG, Casey.

- Hans</description>
		<content:encoded><![CDATA[<p>WTG, Casey.</p>
<p>- Hans</p>
]]></content:encoded>
	</item>
</channel>
</rss>
