<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>Internet Strategy Guide</title>
	<link>http://phpprotip.com</link>
	<description>Together we can defeat the internet</description>
	<lastBuildDate>Fri, 25 Sep 2009 12:59:10 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>PHP Team Development [announcement]</title>
		<description><![CDATA[Apparently my php-fu has become good enough that I've been asked to review books. So sometime in the future I will talk about Packt Publishing's book, "PHP Team Development". My complimentary copy is apparently in the mail, so hopefully I learn to read by then. 
Seriously though, I hope this book will help me tweak [...]]]></description>
		<link>http://phpprotip.com/2009/09/php-team-development-announcement/</link>
			</item>
	<item>
		<title>visibility and inheritance.</title>
		<description><![CDATA[An interesting topic came up in #phpc today. It revolved around some issues I've been encountering in my latest code designs/structures. It also leads into some side topics that I will attempt to explore.
From my point of view, the discussion centered around what is the best 'default' visibility to use for methods. Another thing touched [...]]]></description>
		<link>http://phpprotip.com/2009/08/visibility-and-inheritance/</link>
			</item>
	<item>
		<title>mysql alter table add foreign key</title>
		<description><![CDATA[I recently ran into a situation where I needed to add a foreign key to a table. This seems easy at first but was actually a 3 step process compared to the couple of lines it takes in a create table sytax.
Short version: when creating your FK column, it helps to have the column definition [...]]]></description>
		<link>http://phpprotip.com/2009/07/mysql-alter-table-add-foreign-key/</link>
			</item>
	<item>
		<title>headers exception with Zend_Session while unit testing</title>
		<description><![CDATA[While the manual for Zend_Session does discuss unit testing and the read-only exception, it has no mention of an exception I encountered recently while unit testing. I admit that the reason I encountered the exception is most likely because I'm Doing It Wrong. However, given reality, I did not have time to properly make the [...]]]></description>
		<link>http://phpprotip.com/2009/06/headers-exception-with-zend_session-while-unit-testing/</link>
			</item>
	<item>
		<title>Magic __call() vs. multiple setters</title>
		<description><![CDATA[I recently came across a situation where a few of my setProperty() methods where exactly the same. Since I've gotten into improving my coding, this bugged me because it was repetitious code.
Example:

public function setFoo($foo=null) {
	if (is_string($foo)&#124;&#124;is_numeric($foo)) {
		$this->foo=$foo;
		return $this;
	}
	throw new Custom_Example_Exception("Please provide a proper string or numeric",Custom_Example_Exception::INVALID_TYPE);
}

public function setBar($bar=null) {
	if (is_string($bar)&#124;&#124;is_numeric($bar)) {
		$this->bar=$bar;
		return $this;
	}
	throw new Custom_Example_Exception("Please provide [...]]]></description>
		<link>http://phpprotip.com/2009/03/magic-__call-vs-multiple-setters/</link>
			</item>
	<item>
		<title>zend_log_exception &#8216;bad log priority&#8217;</title>
		<description><![CDATA[I'm writing this post because there are a few times I've gotten this particular exception and then look at the trace and can't figure out what's wrong. More often than not, I'll get to the line in the trace and be like, "wtf! there's no priority here. It's a method call not a constant". This [...]]]></description>
		<link>http://phpprotip.com/2009/02/zend_log_exception-bad_log_priority/</link>
			</item>
	<item>
		<title>openid seems to hate me</title>
		<description><![CDATA[been trying to comment on Chris Shiflett's post on the twitter "Don't Click" debacle and can't seem to get authenticated through openid. so having to post my reply here (below).
cavaet: i'm not an expert on anything and a n00b at a lot of things
liked the article, however I want to disagree that it isn't a [...]]]></description>
		<link>http://phpprotip.com/2009/02/openid-seems-to-hate-me/</link>
			</item>
	<item>
		<title>Installing Citrix client onto Ubuntu 64-bit</title>
		<description><![CDATA[Recently at work, I was told to install the citrix client. This was fine since citrix has a linux install, which did not work or spit out any error message.  After 68 tabs (not exaggerating) worth of googling, I found the reason for this was that citrix hates freedom only works on 32bit linux [...]]]></description>
		<link>http://phpprotip.com/2009/01/installing-citrix-client-onto-ubuntu-64-bit/</link>
			</item>
	<item>
		<title>wordle meme</title>
		<description><![CDATA[
Joining the wordle meme late in the game because I just got ff java plugin to work.
 ]]></description>
		<link>http://phpprotip.com/2008/12/wordle-meme/</link>
			</item>
	<item>
		<title>string searching, you&#8217;re doing it wrong</title>
		<description><![CDATA[First off, I'm not trying to be a complete jack-ass, just a helpful one. This article, by Stefan Ashwell, popped up on my news feed and I wanted to comment on it but can't remember my login for the site and after 10 minutes of waiting the password reset email has yet to arrive. The [...]]]></description>
		<link>http://phpprotip.com/2008/12/string-searching-youre-doing-it-wrong/</link>
			</item>
</channel>
</rss>
