<?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:series="http://unfoldingneurons.com/" ><channel><title>BrandonSavage.net &#187; General PHP</title> <atom:link href="http://www.brandonsavage.net/category/general-php/feed/" rel="self" type="application/rss+xml" /><link>http://www.brandonsavage.net</link> <description>The personal blog of Brandon Savage. Contains entries of a personal and professional nature focusing on PHP, Apple, LAMP, MySQL and Washington, DC.</description> <lastBuildDate>Wed, 28 Jul 2010 15:28:37 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>The Fallacy of Sunk Cost</title><link>http://www.brandonsavage.net/the-fallacy-of-sunk-cost/</link> <comments>http://www.brandonsavage.net/the-fallacy-of-sunk-cost/#comments</comments> <pubDate>Mon, 10 May 2010 11:00:08 +0000</pubDate> <dc:creator>Brandon Savage</dc:creator> <category><![CDATA[General PHP]]></category> <category><![CDATA[Opinion]]></category> <category><![CDATA[development]]></category> <category><![CDATA[fallacy]]></category> <category><![CDATA[refactoring]]></category> <category><![CDATA[rewriting]]></category> <category><![CDATA[sunk cost]]></category><guid isPermaLink="false">http://www.brandonsavage.net/?p=1303</guid> <description><![CDATA[Last week, I began working on something that didn&#8217;t pan out. For whatever reason, I went down the wrong path, and ultimately abandoned the task I was working on. In discussing it with my boss, he mentioned to me that it was better to realize early on that something wouldn&#8217;t work than to trudge onward, [...]]]></description> <wfw:commentRss>http://www.brandonsavage.net/the-fallacy-of-sunk-cost/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Taking A Look At Propel 1.5</title><link>http://www.brandonsavage.net/taking-a-look-at-propel-1-5/</link> <comments>http://www.brandonsavage.net/taking-a-look-at-propel-1-5/#comments</comments> <pubDate>Wed, 24 Feb 2010 03:58:57 +0000</pubDate> <dc:creator>Brandon Savage</dc:creator> <category><![CDATA[General PHP]]></category> <category><![CDATA[beta release]]></category> <category><![CDATA[model]]></category> <category><![CDATA[MVC]]></category> <category><![CDATA[Propel]]></category><guid isPermaLink="false">http://www.brandonsavage.net/?p=1176</guid> <description><![CDATA[Anyone who knows me knows that when I talk about the model, I&#8217;m usually talking about Propel. I&#8217;ve liked Propel ever since I started working with it in the middle of last year; I personally find it easier and more fun to use than Doctrine or other ORMs available today. I was excited to see [...]]]></description> <wfw:commentRss>http://www.brandonsavage.net/taking-a-look-at-propel-1-5/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>HipHop For PHP: Who Benefits, Who Doesn&#8217;t</title><link>http://www.brandonsavage.net/hiphop-for-php-who-benefits-who-doesnt/</link> <comments>http://www.brandonsavage.net/hiphop-for-php-who-benefits-who-doesnt/#comments</comments> <pubDate>Wed, 03 Feb 2010 01:31:17 +0000</pubDate> <dc:creator>Brandon Savage</dc:creator> <category><![CDATA[General PHP]]></category> <category><![CDATA[HipHop for PHP]]></category> <category><![CDATA[hyper PHP]]></category> <category><![CDATA[PHP 5.2]]></category><guid isPermaLink="false">http://www.brandonsavage.net/?p=1166</guid> <description><![CDATA[There&#8217;s been lots and lots of discussion regarding the Facebook &#8220;Hyper PHP&#8221; release of HipHop for PHP. This new technology is an in-production converter for PHP that takes PHP code, converts it into C++ code, and creates a complete binary that can be run on a server natively. Facebook claims improvements of up to 50%, [...]]]></description> <wfw:commentRss>http://www.brandonsavage.net/hiphop-for-php-who-benefits-who-doesnt/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>Be Wary of User Contributed Notes</title><link>http://www.brandonsavage.net/be-wary-of-user-contributed-notes/</link> <comments>http://www.brandonsavage.net/be-wary-of-user-contributed-notes/#comments</comments> <pubDate>Mon, 23 Nov 2009 06:00:57 +0000</pubDate> <dc:creator>Brandon Savage</dc:creator> <category><![CDATA[General PHP]]></category> <category><![CDATA[user-generated content]]></category><guid isPermaLink="false">http://www.brandonsavage.net/?p=1045</guid> <description><![CDATA[This morning, I was reviewing the weekly list of topics with the most comments throughout the PHP manual, and I stumbled upon the following code in the documentation for the date() function. This code is designed to tell you the day of the week for any valid date you give it: &#60;?php function return_day_of_week($date){ $sy=substr($date, [...]]]></description> <wfw:commentRss>http://www.brandonsavage.net/be-wary-of-user-contributed-notes/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>Why Every Developer Should Write Their Own Framework</title><link>http://www.brandonsavage.net/why-every-developer-should-write-their-own-framework/</link> <comments>http://www.brandonsavage.net/why-every-developer-should-write-their-own-framework/#comments</comments> <pubDate>Fri, 06 Nov 2009 06:00:49 +0000</pubDate> <dc:creator>Brandon Savage</dc:creator> <category><![CDATA[General PHP]]></category> <category><![CDATA[System Architecture]]></category> <category><![CDATA[framework]]></category><guid isPermaLink="false">http://www.brandonsavage.net/?p=942</guid> <description><![CDATA[Lots of people have the itch to write their own frameworks. They think that they can do better than Zend, Cake, Symfony, or application-level frameworks like Drupal. They&#8217;re convinced that those designers and developers made fatal flaws, and they can improve upon them. They&#8217;re just itching to give it a shot. So for those of [...]]]></description> <wfw:commentRss>http://www.brandonsavage.net/why-every-developer-should-write-their-own-framework/feed/</wfw:commentRss> <slash:comments>38</slash:comments> </item> <item><title>Five Cool PHP Array Functions</title><link>http://www.brandonsavage.net/five-cool-php-array-functions/</link> <comments>http://www.brandonsavage.net/five-cool-php-array-functions/#comments</comments> <pubDate>Wed, 21 Oct 2009 05:00:52 +0000</pubDate> <dc:creator>Brandon Savage</dc:creator> <category><![CDATA[Best Practices]]></category> <category><![CDATA[General PHP]]></category> <category><![CDATA[array]]></category> <category><![CDATA[internals]]></category> <category><![CDATA[PHP]]></category><guid isPermaLink="false">http://www.brandonsavage.net/?p=887</guid> <description><![CDATA[Time and time again, I come across code that contains a variety of array-handling functions that too often duplicate the work that the PHP core team has done to develop built-in array functions. Since the built-in functions are inherently faster, trying to reimplement them in PHP will inevitably be a performance problem. Here are five [...]]]></description> <wfw:commentRss>http://www.brandonsavage.net/five-cool-php-array-functions/feed/</wfw:commentRss> <slash:comments>21</slash:comments> <series:name><![CDATA[The Beginner Pattern]]></series:name> </item> <item><title>How To Write A Function In PHP</title><link>http://www.brandonsavage.net/how-to-write-a-function-in-php/</link> <comments>http://www.brandonsavage.net/how-to-write-a-function-in-php/#comments</comments> <pubDate>Mon, 12 Oct 2009 05:00:07 +0000</pubDate> <dc:creator>Brandon Savage</dc:creator> <category><![CDATA[General PHP]]></category> <category><![CDATA[beginner]]></category> <category><![CDATA[functions]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[tutorial]]></category><guid isPermaLink="false">http://www.brandonsavage.net/?p=815</guid> <description><![CDATA[PHP allows developers to write a variety of different styles of code: procedural, object-oriented, or simply scripts. This flexibility makes PHP easy to learn, and also means that new developers to PHP may not be programmers in other languages. For new developers, especially developers who have never been programmers before, moving from writing simple scripts [...]]]></description> <wfw:commentRss>http://www.brandonsavage.net/how-to-write-a-function-in-php/feed/</wfw:commentRss> <slash:comments>11</slash:comments> <series:name><![CDATA[The Beginner Pattern]]></series:name> </item> <item><title>Configuring PHP: Essential INI Settings</title><link>http://www.brandonsavage.net/essential-ini-settings/</link> <comments>http://www.brandonsavage.net/essential-ini-settings/#comments</comments> <pubDate>Mon, 28 Sep 2009 05:00:38 +0000</pubDate> <dc:creator>Brandon Savage</dc:creator> <category><![CDATA[Best Practices]]></category> <category><![CDATA[General PHP]]></category> <category><![CDATA[PHP 5]]></category><guid isPermaLink="false">http://www.brandonsavage.net/?p=769</guid> <description><![CDATA[When setting up a web server with PHP, there are a number of settings that are critical to consider. PHP 5.3 contains both a development INI file and a production INI file; however, users of older PHP releases (or those who don&#8217;t have direct control over their INI files) will want to pay attention and [...]]]></description> <wfw:commentRss>http://www.brandonsavage.net/essential-ini-settings/feed/</wfw:commentRss> <slash:comments>16</slash:comments> <series:name><![CDATA[The Beginner Pattern]]></series:name> </item> <item><title>Avoiding Notices: When to Use isset() and empty()</title><link>http://www.brandonsavage.net/avoiding-notices-when-to-use-isset-and-empty/</link> <comments>http://www.brandonsavage.net/avoiding-notices-when-to-use-isset-and-empty/#comments</comments> <pubDate>Wed, 23 Sep 2009 05:00:46 +0000</pubDate> <dc:creator>Brandon Savage</dc:creator> <category><![CDATA[Best Practices]]></category> <category><![CDATA[General PHP]]></category> <category><![CDATA[notices]]></category> <category><![CDATA[The Beginner Pattern]]></category><guid isPermaLink="false">http://www.brandonsavage.net/?p=735</guid> <description><![CDATA[One of the most confusing things for new programmers (and it even trips me up sometimes) is how to test for boolean conditions in code. As developers, we want to develop code that never emits notices or warnings, and PHP gets a bit antsy when we develop code that utilizes uninitialized variables. Lucky for us, [...]]]></description> <wfw:commentRss>http://www.brandonsavage.net/avoiding-notices-when-to-use-isset-and-empty/feed/</wfw:commentRss> <slash:comments>13</slash:comments> <series:name><![CDATA[The Beginner Pattern]]></series:name> </item> <item><title>Searching Arrays for Values</title><link>http://www.brandonsavage.net/searching-arrays-for-values/</link> <comments>http://www.brandonsavage.net/searching-arrays-for-values/#comments</comments> <pubDate>Mon, 22 Dec 2008 23:56:56 +0000</pubDate> <dc:creator>Brandon Savage</dc:creator> <category><![CDATA[General PHP]]></category> <category><![CDATA[PHP 5]]></category><guid isPermaLink="false">http://dev.brandonsavage.net/?p=105</guid> <description><![CDATA[Sometimes I have to check an array for the existence of a value; for example, I may want to parse an array for a value and then include (or exclude) that value fro an SQL query. I quickly found out that using in_array() is slower than using isset(). For example: &#60;?php $exclude = array( &#039;submit&#039;, [...]]]></description> <wfw:commentRss>http://www.brandonsavage.net/searching-arrays-for-values/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using apc (user agent is rejected)
Database Caching 48/56 queries in 0.030 seconds using disk

Served from: www.brandonsavage.net @ 2010-09-10 11:53:57 -->