<?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/"
	>

<channel>
	<title>Nick Bartlett</title>
	<atom:link href="http://www.nickbartlett.com/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nickbartlett.com/wordpress</link>
	<description>PHP Developer in Minnesota</description>
	<pubDate>Wed, 18 Aug 2010 14:42:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>fatal error: imap_header() address buffer overflow</title>
		<link>http://www.nickbartlett.com/wordpress/fatal-error-imap_header-address-buffer-overflow/</link>
		<comments>http://www.nickbartlett.com/wordpress/fatal-error-imap_header-address-buffer-overflow/#comments</comments>
		<pubDate>Wed, 18 Aug 2010 14:42:16 +0000</pubDate>
		<dc:creator>nick</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[imap]]></category>

		<guid isPermaLink="false">http://www.nickbartlett.com/wordpress/?p=695</guid>
		<description><![CDATA[Today many of our imap mailboxes returned this error when checking email &#8220;fatal error: imap_header() address buffer overflow&#8221;. The problem was these mailboxes received an email that had 500+ recipients in the &#8220;To&#8221; field.  We deleted this email from the mailboxes and the error went away.  If you have this problem, I also [...]]]></description>
			<content:encoded><![CDATA[<p>Today many of our imap mailboxes returned this error when checking email &#8220;fatal error: imap_header() address buffer overflow&#8221;. The problem was these mailboxes received an email that had 500+ recipients in the &#8220;To&#8221; field.  We deleted this email from the mailboxes and the error went away.  If you have this problem, I also suggest blocking the person, or better, find a setting to block message such as these on your mail server. </p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.nickbartlett.com%2Fwordpress%2Ffatal-error-imap_header-address-buffer-overflow%2F&amp;linkname=fatal%20error%3A%20imap_header%28%29%20address%20buffer%20overflow"><img src="http://www.nickbartlett.com/wordpress/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.nickbartlett.com/wordpress/fatal-error-imap_header-address-buffer-overflow/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Firefox broken image placeholders windows 7</title>
		<link>http://www.nickbartlett.com/wordpress/firefox-broken-image-placeholders-windows-7/</link>
		<comments>http://www.nickbartlett.com/wordpress/firefox-broken-image-placeholders-windows-7/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 18:52:26 +0000</pubDate>
		<dc:creator>nick</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://www.nickbartlett.com/wordpress/?p=690</guid>
		<description><![CDATA[I tested our site in IE today and found that IE has one useful feature; broken image placeholders.  There were a few broken images that I did not notice while using Firefox because Firefox just displays the alt text.  The best way to do it is as described here
http://gavtaylor.co.uk/blog/enable-broken-image-placeholders-in-firefox and

http://onlinemoneymaking.ws/blog/show-dead-image-placeholder-in-firefox/ . Their examples [...]]]></description>
			<content:encoded><![CDATA[<p>I tested our site in IE today and found that IE has one useful feature; broken image placeholders.  There were a few broken images that I did not notice while using Firefox because Firefox just displays the alt text.  The best way to do it is as described here<br />
<a href="http://onlinemoneymaking.ws/blog/show-dead-image-placeholder-in-firefox/" target="_blank">http://gavtaylor.co.uk/blog/enable-broken-image-placeholders-in-firefox</a> and<br />
<a href="http://onlinemoneymaking.ws/blog/show-dead-image-placeholder-in-firefox/" target="_blank"><br />
http://onlinemoneymaking.ws/blog/show-dead-image-placeholder-in-firefox/</a> . Their examples help you find the file with older versions of Windows.  If you&#8217;re on Windows 7 like me, the userContent.css file will go here -<br />
C:\Users\%yourUsername%\AppData\Roaming\Mozilla\Firefox\Profiles\x3qch3l0.default\chrome</p>
<p>Rename ‘UserContent-example.css’ to ‘UserContent.css’, this will then be loaded by Firefox when it fires up.</p>
<p>Add the following CSS to the file and restart Firefox..</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Enable image placeholders */</span>
<span style="color: #a1a100;">@-moz-document url-prefix(http), url-prefix(file) {</span>
	img<span style="color: #3333ff;">:-moz-broken </span><span style="color: #00AA00;">&#123;</span>
		-moz-force-broken-image-<span style="color: #993333;">icon</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1</span>;
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">24px</span>;
		<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">24px</span>;
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.nickbartlett.com%2Fwordpress%2Ffirefox-broken-image-placeholders-windows-7%2F&amp;linkname=Firefox%20broken%20image%20placeholders%20windows%207"><img src="http://www.nickbartlett.com/wordpress/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.nickbartlett.com/wordpress/firefox-broken-image-placeholders-windows-7/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to list and sort directories and files by size in Linux</title>
		<link>http://www.nickbartlett.com/wordpress/how-to-list-and-sort-directories-by-size-in-linux/</link>
		<comments>http://www.nickbartlett.com/wordpress/how-to-list-and-sort-directories-by-size-in-linux/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 18:36:00 +0000</pubDate>
		<dc:creator>nick</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.nickbartlett.com/wordpress/?p=677</guid>
		<description><![CDATA[This will list all directories at the root level sorted alphabetically with their size printed in an easy to read format
du -sh /*
To list all subdirectories for a specified parent directory, use this command and specify the parent directory path like &#8220;usr&#8221; in this example.
du -h &#8211;max-depth=1 /usr
or run this in for current directory
du -h [...]]]></description>
			<content:encoded><![CDATA[<p>This will list all directories at the root level sorted alphabetically with their size printed in an easy to read format</p>
<p>du -sh /*</p>
<p>To list all subdirectories for a specified parent directory, use this command and specify the parent directory path like &#8220;usr&#8221; in this example.</p>
<p>du -h &#8211;max-depth=1 /usr</p>
<p>or run this in for current directory</p>
<p>du -h &#8211;max-depth=1 2>/dev/null</p>
<p>List size of files within a directory</p>
<p>ls -s</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.nickbartlett.com%2Fwordpress%2Fhow-to-list-and-sort-directories-by-size-in-linux%2F&amp;linkname=How%20to%20list%20and%20sort%20directories%20and%20files%20by%20size%20in%20Linux"><img src="http://www.nickbartlett.com/wordpress/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.nickbartlett.com/wordpress/how-to-list-and-sort-directories-by-size-in-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Zend Unknown record property / related component Error</title>
		<link>http://www.nickbartlett.com/wordpress/zend-unknown-record-property-related-component-error/</link>
		<comments>http://www.nickbartlett.com/wordpress/zend-unknown-record-property-related-component-error/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 18:48:15 +0000</pubDate>
		<dc:creator>nick</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Zend]]></category>

		<guid isPermaLink="false">http://www.nickbartlett.com/wordpress/?p=675</guid>
		<description><![CDATA[I&#8217;ve had this troublesome error pop up twice now and the problem is not what you think.  I&#8217;m working with Zend Framework and in one of my controllers I created the variable &#8220;private $_request&#8221; and with Zend Studio 7.2, I added this property to my &#8220;expressions&#8221; view to I could monitor its value.  [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve had this troublesome error pop up twice now and the problem is not what you think.  I&#8217;m working with Zend Framework and in one of my controllers I created the variable &#8220;private $_request&#8221; and with Zend Studio 7.2, I added this property to my &#8220;expressions&#8221; view to I could monitor its value.  After a while I decided to no longer use that property and removed it from my code, but it was still being monitored in the expressions view of Zend Studio.  That&#8217;s when the &#8220;Unknown record property / related component &#8220;$_request&#8221; on objectName&#8221; errors started.  It&#8217;s not a coding error of any sort; it&#8217;s a software issue that somehow looks like a coding issue.  I am using Zend Server and their debugger, so the connections between each software may be causing problems. </p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.nickbartlett.com%2Fwordpress%2Fzend-unknown-record-property-related-component-error%2F&amp;linkname=Zend%20Unknown%20record%20property%20%2F%20related%20component%20Error"><img src="http://www.nickbartlett.com/wordpress/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.nickbartlett.com/wordpress/zend-unknown-record-property-related-component-error/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Zend Studio php_pdo_mysql.dll error</title>
		<link>http://www.nickbartlett.com/wordpress/zend-studio-php_pdo_mysqldll-error/</link>
		<comments>http://www.nickbartlett.com/wordpress/zend-studio-php_pdo_mysqldll-error/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 15:53:35 +0000</pubDate>
		<dc:creator>nick</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[PHPUnit]]></category>

		<category><![CDATA[Zend Studio]]></category>

		<guid isPermaLink="false">http://www.nickbartlett.com/wordpress/?p=673</guid>
		<description><![CDATA[I started using phpunit, which is built into Zend Studio 7.2.  Everything works fine until it encountered a database query that used PDO.  The test case will timeout and zend studio will give you the error &#8220;Test case was unexpectedly terminated&#8221;.  It took a lot of digging to find the real error [...]]]></description>
			<content:encoded><![CDATA[<p>I started using phpunit, which is built into Zend Studio 7.2.  Everything works fine until it encountered a database query that used PDO.  The test case will timeout and zend studio will give you the error &#8220;Test case was unexpectedly terminated&#8221;.  It took a lot of digging to find the real error in the windows event viewer:</p>
<p>Faulting application name: php-cgi.exe, version: 5.2.10.10, time stamp: 0&#215;4abb41d8<br />
Faulting module name: php_pdo_mysql.dll, version: 5.2.10.10, time stamp: 0&#215;4ab23077<br />
Exception code: 0xc0000005<br />
Fault offset: 0&#215;00002580<br />
Faulting process id: 0&#215;458<br />
Faulting application start time: 0&#215;01cb16fb91818916<br />
Faulting application path: C:\Program Files (x86)\Zend\Zend Studio - 7.1.0\plugins\org.zend.php.debug.debugger.win32.x86_5.3.7.v20091116\resources\php5\php-cgi.exe<br />
Faulting module path: C:\Program Files (x86)\Zend\Zend Studio - 7.1.0\plugins\org.zend.php.debug.debugger.win32.x86_5.3.7.v20091116\resources\php5\ext\php_pdo_mysql.dll<br />
Report Id: d31816ab-82ee-11df-99ae-00241dd93279</p>
<p>The solution?  While I had Zend Server installed and using PHP 5.3, Zend Studio&#8217;s internal version was using PHP 5.2.xxx.  I&#8217;m pretty certain Doctrine, which uses PDO, requires PHP 5.3.  I changed Zend Studio to PHP 5.3 and it worked.  In Zend Studio, go to Window->preferences->php->debug and ensure the &#8220;PHP executable&#8221; is set to PHP 5.3.  FYI - My &#8220;server&#8221; on this screen is set to &#8220;Local Zend Server&#8221;.  Hope this helps!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.nickbartlett.com%2Fwordpress%2Fzend-studio-php_pdo_mysqldll-error%2F&amp;linkname=Zend%20Studio%20php_pdo_mysql.dll%20error"><img src="http://www.nickbartlett.com/wordpress/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.nickbartlett.com/wordpress/zend-studio-php_pdo_mysqldll-error/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Zend Studio select the local resource that matches the following server path</title>
		<link>http://www.nickbartlett.com/wordpress/zend-studio-select-the-local-resource-that-matches-the-following-server-path/</link>
		<comments>http://www.nickbartlett.com/wordpress/zend-studio-select-the-local-resource-that-matches-the-following-server-path/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 19:20:21 +0000</pubDate>
		<dc:creator>nick</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[Zend Studio]]></category>

		<guid isPermaLink="false">http://www.nickbartlett.com/wordpress/?p=671</guid>
		<description><![CDATA[If while debugging with Zend Studio for Eclipse you get the error &#8220;select the local resource that matches the following server path&#8221; there are two possible solutions.
First, the easy one.  If you opened the file from the explorer windows and not through Eclipse, the file is not open in the project so it doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>If while debugging with Zend Studio for Eclipse you get the error &#8220;select the local resource that matches the following server path&#8221; there are two possible solutions.</p>
<p>First, the easy one.  If you opened the file from the explorer windows and not through Eclipse, the file is not open in the project so it doesn&#8217;t know where the other resources are.  The open declaration ability will not work either. </p>
<p>IF that didn&#8217;t work, try this next change.  If you have external libraries that are used in your application, first add the library to the build path of your project.  Then, if you get the pop error while debugging: &#8220;select the local resource that matches the following server path&#8221; and &#8220;get content from the server for the following path&#8221;, you must map the paths as explained below.</p>
<h1>Adding a Server Location Path Map</h1>
<p>This procedure describes how to add a Path Map to a server so that files which are called from a certain location on the server will be searched for in a local location during remote PHP Script debbuging/profiling and PHP Web Page debugging /profiling. This will only apply when  the &#8216;use local copy&#8217; option is selected in the Advanced tab of the PHP Web Page debugging configuration) .</p>
<p>To add a Path Map to a server:</p>
<ol>
<li>Open the PHP Servers Preferences Page by going to Window | Preferences on the Menu Bar and selecting PHP | PHP Servers from the Preferences list.</li>
<li>Select the server on which you would like to create the Path Map and click Edit.</li>
<li>In the Edit Server dialog, select the Path Mapping tab.</li>
<li>Click Add.</li>
<li>An Add new Path Mapping dialog appears.</li>
<li> Enter the Server Path from which you would like to create the Path Map. Files called from this location will be searched for in the path specified below.</li>
<li>Select either the &#8216;Path in Workspace&#8217; or &#8216;Path in File System&#8217; option and click Browse to specify the location.</li>
</ol>
<p class="picture"><img src="http://files.zend.com/help/Zend-Studio/path_mapping_edit.png" alt="path_mapping_edit.png" style="border: none;" width="228" height="217" border="0"></p>
<p>Your<br />
		 Path Map will be added to your server list.</p>
<p class="picture"><img src="http://files.zend.com/help/Zend-Studio/path_mapping_dialog.png" alt="path_mapping_dialog.png" style="border: none;" width="459" height="234" border="0"></p>
<p class="picture">Path<br />
		 Mapping Settings</p>
<p>The next time a file is called from the Path on Server, it will<br />
		 be searched for in the local location you have specified.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.nickbartlett.com%2Fwordpress%2Fzend-studio-select-the-local-resource-that-matches-the-following-server-path%2F&amp;linkname=Zend%20Studio%20select%20the%20local%20resource%20that%20matches%20the%20following%20server%20path"><img src="http://www.nickbartlett.com/wordpress/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.nickbartlett.com/wordpress/zend-studio-select-the-local-resource-that-matches-the-following-server-path/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Cannot redeclare class PHPUnit_Util_FilterIterator</title>
		<link>http://www.nickbartlett.com/wordpress/cannot-redeclare-class-phpunit_util_filteriterator/</link>
		<comments>http://www.nickbartlett.com/wordpress/cannot-redeclare-class-phpunit_util_filteriterator/#comments</comments>
		<pubDate>Mon, 21 Jun 2010 19:52:55 +0000</pubDate>
		<dc:creator>nick</dc:creator>
		
		<category><![CDATA[PHPUnit]]></category>

		<guid isPermaLink="false">http://www.nickbartlett.com/wordpress/?p=669</guid>
		<description><![CDATA[I&#8217;m using Zend Studio 7.2 on Windows 7 with Zend Framework 1.10 and Zend Server CE.  I&#8217;ve created a PHPUnit test case with Zend Studio and am able to run it successfully via the command line.  I&#8217;d like to use Zend Studio&#8217;s interface, but when I run the test case I get the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using Zend Studio 7.2 on Windows 7 with Zend Framework 1.10 and Zend Server CE.  I&#8217;ve created a PHPUnit test case with Zend Studio and am able to run it successfully via the command line.  I&#8217;d like to use Zend Studio&#8217;s interface, but when I run the test case I get the following error &#8220;Fatal error: Cannot redeclare class PHPUnit_Util_FilterIterator in C:\Program Files (x86)\Zend\Apache2\htdocs\library\pear\pear\PHPUnit\Util\FilterIterator.php on line 162&#8243; .  </p>
<p>Update: I got past this error.  The problem was related to having both my custom install of PHPUnit and the PHPUnit built into Zend Studio on the include path of the project.  Remove one of them and it should work. </p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.nickbartlett.com%2Fwordpress%2Fcannot-redeclare-class-phpunit_util_filteriterator%2F&amp;linkname=Cannot%20redeclare%20class%20PHPUnit_Util_FilterIterator"><img src="http://www.nickbartlett.com/wordpress/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.nickbartlett.com/wordpress/cannot-redeclare-class-phpunit_util_filteriterator/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to install PHPUnit on Windows</title>
		<link>http://www.nickbartlett.com/wordpress/how-to-install-phpunit-on-windows/</link>
		<comments>http://www.nickbartlett.com/wordpress/how-to-install-phpunit-on-windows/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 21:26:01 +0000</pubDate>
		<dc:creator>nick</dc:creator>
		
		<category><![CDATA[Development]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[PHPUnit]]></category>

		<guid isPermaLink="false">http://www.nickbartlett.com/wordpress/?p=662</guid>
		<description><![CDATA[After about ten hours of fighting with PEAR and PHPUnit, I think I have it installed correctly as my test case was able to run.  There are a couple &#8220;official&#8221; documentation sources on how to install PHPUnit, but they only bother to cover installing it on linux.  Further, PHPUnit has evolved quite a [...]]]></description>
			<content:encoded><![CDATA[<p>After about ten hours of fighting with PEAR and PHPUnit, I think I have it installed correctly as my test case was able to run.  There are a couple &#8220;official&#8221; documentation sources on how to install PHPUnit, but they only bother to cover installing it on linux.  Further, PHPUnit has evolved quite a bit over the past few years and its configuration seems to have changed.  I wouldn&#8217;t even bother installing PEAR if you don&#8217;t want to because the PHPUnit version from PEAR is grossly outdated.  As of now, the currently version of PHPUnit is 3.4.9.  If you install pear and phpunit from the command line as I tried a couple times, the phpunit.bat file will not be updated as it should, so phpunit will not work.  If you open phpunit.bat and see these lines &#8220;set PHPBIN=&#8221;@php_bin@&#8221;<br />
%PHPBIN% &#8220;@bin_dir@\phpunit&#8221; %*&#8221;, then you know something didn&#8217;t work right. </p>
<ol>
<li>
To install manually as I did, go to <a href="http://pear.phpunit.de/get/">http://pear.phpunit.de/get/</a> to download the latest version of PHPUnit.  Extract the files to a directory that is listed in the include_path of your php.ini configuration file.  If you&#8217;d like to place it in a custom location, add that location to the include_path in your php.ini file.
</li>
<li>
Find the phpunit.bat file that you extracted, open it with a text editor and change the @php_bin@ string in it with the path to php.exe.  Get rid of this line &#8220;%PHPBIN% &#8220;@bin_dir@\phpunit&#8221; %*&#8221; as it won&#8217;t be needed.  On the line below, add the following line to execute phpunit.php with php &#8216;php -d safe_mode=Off &#8220;C:\Program Files (x86)\Zend\Apache2\htdocs\library\pear\pear\phpunit.php&#8221; %*&#8217;.  Remove the single quotes I added here and change the path to phpunit.php to the file&#8217;s location on your computer (the directory you extracted phpunit to).
</li>
</ol>
<p>In the end, your phpunit.bat file should look similar to this (with that paths to php.exe and phpunit.php changed to your file locations)</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #339933;">@</span><span style="color: #990000;">echo</span> off
REM PHPUnit
REM
REM Copyright <span style="color: #009900;">&#40;</span>c<span style="color: #009900;">&#41;</span> <span style="color: #cc66cc;">2002</span><span style="color: #339933;">-</span><span style="color: #cc66cc;">2010</span><span style="color: #339933;">,</span> Sebastian Bergmann <span style="color: #339933;">&lt;</span>sb<span style="color: #339933;">@</span>sebastian<span style="color: #339933;">-</span>bergmann<span style="color: #339933;">.</span>de<span style="color: #339933;">&gt;.</span>
REM All rights reserved<span style="color: #339933;">.</span>
REM
REM Redistribution and use in source and binary forms<span style="color: #339933;">,</span> with or without
REM modification<span style="color: #339933;">,</span> are permitted provided that the following conditions
REM are met<span style="color: #339933;">:</span>
REM
REM   <span style="color: #339933;">*</span> Redistributions of source code must retain the above copyright
REM     notice<span style="color: #339933;">,</span> this <span style="color: #990000;">list</span> of conditions and the following disclaimer<span style="color: #339933;">.</span>
REM 
REM   <span style="color: #339933;">*</span> Redistributions in binary form must reproduce the above copyright
REM     notice<span style="color: #339933;">,</span> this <span style="color: #990000;">list</span> of conditions and the following disclaimer in
REM     the documentation and<span style="color: #339933;">/</span>or other materials provided with the
REM     distribution<span style="color: #339933;">.</span>
REM
REM   <span style="color: #339933;">*</span> Neither the name of Sebastian Bergmann nor the names of his
REM     contributors may be used to endorse or promote products derived
REM     from this software without specific prior written permission<span style="color: #339933;">.</span>
REM
REM THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
REM <span style="color: #0000ff;">&quot;AS IS&quot;</span> AND ANY EXPRESS OR IMPLIED WARRANTIES<span style="color: #339933;">,</span> INCLUDING<span style="color: #339933;">,</span> BUT NOT
REM LIMITED TO<span style="color: #339933;">,</span> THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
REM <span style="color: #b1b100;">FOR</span> A PARTICULAR PURPOSE ARE DISCLAIMED<span style="color: #339933;">.</span> IN NO EVENT SHALL THE
REM COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE <span style="color: #b1b100;">FOR</span> ANY DIRECT<span style="color: #339933;">,</span> INDIRECT<span style="color: #339933;">,</span>
REM INCIDENTAL<span style="color: #339933;">,</span> SPECIAL<span style="color: #339933;">,</span> EXEMPLARY<span style="color: #339933;">,</span> OR CONSEQUENTIAL DAMAGES <span style="color: #009900;">&#40;</span>INCLUDING<span style="color: #339933;">,</span>
REM BUT NOT LIMITED TO<span style="color: #339933;">,</span> PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
REM LOSS OF USE<span style="color: #339933;">,</span> DATA<span style="color: #339933;">,</span> OR PROFITS; OR BUSINESS INTERRUPTION<span style="color: #009900;">&#41;</span> HOWEVER
REM CAUSED AND ON ANY THEORY OF LIABILITY<span style="color: #339933;">,</span> WHETHER IN CONTRACT<span style="color: #339933;">,</span> STRIC
REM LIABILITY<span style="color: #339933;">,</span> OR TORT <span style="color: #009900;">&#40;</span>INCLUDING NEGLIGENCE OR OTHERWISE<span style="color: #009900;">&#41;</span> ARISING IN
REM ANY WAY OUT OF THE USE OF THIS SOFTWARE<span style="color: #339933;">,</span> EVEN <span style="color: #b1b100;">IF</span> ADVISED OF THE
REM POSSIBILITY OF SUCH DAMAGE<span style="color: #339933;">.</span>
REM
&nbsp;
set PHPBIN<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;C:<span style="color: #000099; font-weight: bold;">\P</span>rogram Files (x86)<span style="color: #000099; font-weight: bold;">\Z</span>end<span style="color: #000099; font-weight: bold;">\Z</span>endServer<span style="color: #000099; font-weight: bold;">\b</span>in<span style="color: #000099; font-weight: bold;">\p</span>hp.exe&quot;</span>
php <span style="color: #339933;">-</span>d safe_mode<span style="color: #339933;">=</span>Off <span style="color: #0000ff;">&quot;C:<span style="color: #000099; font-weight: bold;">\P</span>rogram Files (x86)<span style="color: #000099; font-weight: bold;">\Z</span>end<span style="color: #000099; font-weight: bold;">\A</span>pache2<span style="color: #000099; font-weight: bold;">\h</span>tdocs<span style="color: #000099; font-weight: bold;">\l</span>ibrary<span style="color: #000099; font-weight: bold;">\p</span>ear<span style="color: #000099; font-weight: bold;">\p</span>ear<span style="color: #000099; font-weight: bold;">\p</span>hpunit.php&quot;</span> <span style="color: #339933;">%*</span></pre></td></tr></table></div>

<p>To test your install, go to the command line on windows and type &#8220;phpunit&#8221; and hit enter.  If you don&#8217;t see any errors, then it&#8217;s installed correctly.</p>
<p><strong>Other Issues</strong><br />
Using Zend Server 5.0, Zend framework 1.10, and PHPUnit 3.4.9, I had to apply a couple patches or bug fixes to get things to work. </p>
<ol>
<li>I received the error &#8220;Fatal error: Cannot redeclare class PHPUnit_Framework_TestCase&#8221; .  The Zend Studio template for a test case automatically includes

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span> <span style="">'PHPUnit\Framework\TestCase.php'</span>; <span style="color: #339933;">.</span></pre></td></tr></table></div>

<p>Change this to</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php php" style="font-family:monospace;"><span style="color: #b1b100;">require_once</span> <span style="">'PHPUnit\Framework.php'</span>;</pre></td></tr></table></div>

<p>for each test case.  The bug report for this issue is located at <a href="http://framework.zend.com/issues/browse/ZF-9380">http://framework.zend.com/issues/browse/ZF-9380</a></li>
<li>
</ol>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.nickbartlett.com%2Fwordpress%2Fhow-to-install-phpunit-on-windows%2F&amp;linkname=How%20to%20install%20PHPUnit%20on%20Windows"><img src="http://www.nickbartlett.com/wordpress/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.nickbartlett.com/wordpress/how-to-install-phpunit-on-windows/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Doctrine Relationships</title>
		<link>http://www.nickbartlett.com/wordpress/doctrine-relationships/</link>
		<comments>http://www.nickbartlett.com/wordpress/doctrine-relationships/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 15:15:36 +0000</pubDate>
		<dc:creator>nick</dc:creator>
		
		<category><![CDATA[Doctrine ORM]]></category>

		<category><![CDATA[Doctrine]]></category>

		<guid isPermaLink="false">http://www.nickbartlett.com/wordpress/?p=660</guid>
		<description><![CDATA[Some personal notes on using Doctrine&#8217;s relationships -
In order for the relationships to be populated, such as the hasOne or hasMany as specified in the setUp method, you must write your query using the Doctrine_Core::getTable method. Using Doctrine_Query::create will return only the result set from that query and non of the relationships.
]]></description>
			<content:encoded><![CDATA[<p>Some personal notes on using Doctrine&#8217;s relationships -<br />
In order for the relationships to be populated, such as the hasOne or hasMany as specified in the setUp method, you must write your query using the Doctrine_Core::getTable method. Using Doctrine_Query::create will return only the result set from that query and non of the relationships.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.nickbartlett.com%2Fwordpress%2Fdoctrine-relationships%2F&amp;linkname=Doctrine%20Relationships"><img src="http://www.nickbartlett.com/wordpress/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.nickbartlett.com/wordpress/doctrine-relationships/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Reasons why I no longer sell on Amazon</title>
		<link>http://www.nickbartlett.com/wordpress/reasons-why-i-no-longer-sell-on-amazon/</link>
		<comments>http://www.nickbartlett.com/wordpress/reasons-why-i-no-longer-sell-on-amazon/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 15:56:41 +0000</pubDate>
		<dc:creator>nick</dc:creator>
		
		<category><![CDATA[Ecommerce]]></category>

		<category><![CDATA[amazon]]></category>

		<guid isPermaLink="false">http://www.nickbartlett.com/wordpress/?p=656</guid>
		<description><![CDATA[Today I requested closure of our Amazon.com seller account after four months.  I have briefly listed below the main reasons for the cancellation.  You can read more detail of our initial problems with  amazon holding our money and not paying us. 
Selling on Amazon was too competitive for our type of product, [...]]]></description>
			<content:encoded><![CDATA[<p>Today I requested closure of our Amazon.com seller account after four months.  I have briefly listed below the main reasons for the cancellation.  You can read more detail of our initial problems with  <a href="http://www.nickbartlett.com/wordpress/selling-on-amazoncom-sucks/">amazon holding our money and not paying us</a>. </p>
<ol>Selling on Amazon was too competitive for our type of product, which means little to no profit.  Amazon&#8217;s 15% cut on sales plus $40 per month pro merchant account fees took most of the profit.</ol>
<ol>Too much time to manage orders.  I wrote programming to allow order imports based on an &#8220;order report&#8221; from amazon so speed things up.  However, entering tracking numbers and constantly requesting feedback to keep our account open was tedious time consuming.</ol>
<ol>On Amazon, buyer wins all disputes no questions asked as Amazon takes your money immediately. If the buyer supplies you with an incorrect shipping address, it&#8217;s on you to pay the UPS reroute fees and/or reship the product.  </ol>
<ol>Zero Customer Service.  You&#8217;ll never talk to a real person and will only get prefabbed customer support responses.</ol>
<ol>Amazon works hard at keeping the customers purchasing though their site.  The only way we could earn any money from these customers is if they purchased directly from our online website for follow up orders rather than use Amazon and that was not happening.  Amazon will not provide you with the customer&#8217;s email address and they&#8217;ll suspend your account if you include any hyperlinks or your store name in any communications to them.  Smart on Amazon&#8217;s part, but keeps sellers from making any money.</ol>
<ol>The last straw is when Amazon again started holding our money.  They&#8217;re holding $8,000 of our money as &#8220;reserve&#8221; and instead paying us only a few hundred dollars of our money ever other week.  They are holding it for 90 days!  That&#8217;s money I&#8217;m paying interest on while they&#8217;re out spending it!  I cannot continue to finance this business relationship where we&#8217;re making little to no profit in hopes that we&#8217;d increase customer orders directly to our website, which unfortunately isn&#8217;t happening.</ol>
<p><Br><br />
Good bye Amazon!</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.nickbartlett.com%2Fwordpress%2Freasons-why-i-no-longer-sell-on-amazon%2F&amp;linkname=Reasons%20why%20I%20no%20longer%20sell%20on%20Amazon"><img src="http://www.nickbartlett.com/wordpress/wp-content/plugins/add-to-any/share_save_256_24.png" width="256" height="24" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.nickbartlett.com/wordpress/reasons-why-i-no-longer-sell-on-amazon/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
