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

<channel>
	<title>Chris Schuld&#039;s Blog &#187; PHP</title>
	<atom:link href="http://chrisschuld.com/category/web-development/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisschuld.com</link>
	<description>personal musings on the composition of software</description>
	<lastBuildDate>Mon, 30 Aug 2010 03:48:50 +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>Browser.php updated to v1.6</title>
		<link>http://chrisschuld.com/2009/11/browser-php-updated-to-v1-6/</link>
		<comments>http://chrisschuld.com/2009/11/browser-php-updated-to-v1-6/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 18:04:56 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=284</guid>
		<description><![CDATA[Version 1.6 of Browser.php has been released with a lot of updates: http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/]]></description>
			<content:encoded><![CDATA[<p>Version 1.6 of Browser.php has been released with a lot of updates: <a href="http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/">http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2009/11/browser-php-updated-to-v1-6/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Opera 10&#8242;s User Agent</title>
		<link>http://chrisschuld.com/2009/11/opera-10s-user-agent/</link>
		<comments>http://chrisschuld.com/2009/11/opera-10s-user-agent/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 17:10:01 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=278</guid>
		<description><![CDATA[For those of you who detect Opera 10&#8242;s user agent, the Opera team has provide some &#8220;fun&#8221; for all of us. In my Browser project I started getting feedback that it was broken. At the 10,000&#8242; level, it was defintely broken because the Browser project was returning version 9.8 for Opera version 10. This is [...]]]></description>
			<content:encoded><![CDATA[<p>For those of you who detect Opera 10&#8242;s user agent, the Opera team has provide some &#8220;fun&#8221; for all of us.  In my B<a href="http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/">rowser project</a> I started getting feedback that it was broken.  At the 10,000&#8242; level, it was defintely broken because the <a href="http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/">Browser project</a> was returning version 9.8 for Opera version 10.</p>
<p>This is because the Opera dev team decided to leave the version 9.8 user agent string the same and tack on version 10 to end of the string.  You can <a href="http://dev.opera.com/articles/view/opera-ua-string-changes/">read more about it on their blog</a>.</p>
<p>For those of you using my <a href="http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/">Browser project</a> have no fear; the new version (1.6+) handles the oddity!</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2009/11/opera-10s-user-agent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Browser.php updated to v1.5</title>
		<link>http://chrisschuld.com/2009/04/browserphp-updated-to-v15/</link>
		<comments>http://chrisschuld.com/2009/04/browserphp-updated-to-v15/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 15:52:28 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=236</guid>
		<description><![CDATA[In the Browser.php project John pointed out (in the comments) a terrible typo in the source. I imagine no one has encountered this before as it only effects v1 or v1.5 of Internet Explorer. Typo updated and version 1.5 of Browser.php released: http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/]]></description>
			<content:encoded><![CDATA[<p>In the Browser.php project John pointed out (<em>in the comments</em>) a terrible typo in the source.  I imagine no one has encountered this before as  it only effects v1 or v1.5 of Internet Explorer.</p>
<p>Typo updated and version 1.5 of Browser.php released: <a href="http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/">http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2009/04/browserphp-updated-to-v15/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Removing Images in a WordPress Post (Revisited)</title>
		<link>http://chrisschuld.com/2009/04/removing-images-in-a-wordpress-post-revisited/</link>
		<comments>http://chrisschuld.com/2009/04/removing-images-in-a-wordpress-post-revisited/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 06:17:47 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=230</guid>
		<description><![CDATA[A while back I wrote a semi-popular post on removing images from a WordPress post &#8212; today I am revisiting it. The original solution used the_content() and the output buffer to remove the images out of the post. Now that I have used WordPress a bit longer and candidly had to use the solution again [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I wrote a semi-popular post on <a href="http://chrisschuld.com/2008/08/removing-images-from-a-wordpress-post/">removing images from a WordPress post</a> &#8212; today I am revisiting it.  The original solution used <a href="http://codex.wordpress.org/Template_Tags/the_content">the_content()</a> and the <a href="http://us2.php.net/outcontrol">output buffer</a> to remove the images out of the post.  Now that I have used <a href="http://wordpress.org/">WordPress</a> a bit longer and candidly had to use the solution again and thought &#8220;<em>what was I thinking</em>&#8221; I thought I would share the cleaner solution:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/&amp;lt;img[^&amp;gt;]+./'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>get_the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2009/04/removing-images-in-a-wordpress-post-revisited/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Browser.php updated to v1.4</title>
		<link>http://chrisschuld.com/2009/04/browserphp-updated-to-v1-4/</link>
		<comments>http://chrisschuld.com/2009/04/browserphp-updated-to-v1-4/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 16:57:28 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=228</guid>
		<description><![CDATA[I released v1.4 of the Browser.php project today to address a few features suggested by readers. This new release adds support for GoogleBot, Yahoo! Slurp, and the W3C Validator. Check out version 1.4: http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/]]></description>
			<content:encoded><![CDATA[<p>I released v1.4 of the Browser.php project today to address a few features suggested by readers.  This new release adds support for <a href="http://en.wikipedia.org/wiki/Googlebot">GoogleBot</a>, <a href="http://help.yahoo.com/l/us/yahoo/search/webcrawler/">Yahoo! Slurp</a>, and the <a href="http://validator.w3.org/">W3C Validator</a>.</p>
<p>Check out version 1.4: <a href="http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/">http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2009/04/browserphp-updated-to-v1-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Browser.php updated to v1.3</title>
		<link>http://chrisschuld.com/2009/03/browser-php-updated-to-v1-3/</link>
		<comments>http://chrisschuld.com/2009/03/browser-php-updated-to-v1-3/#comments</comments>
		<pubDate>Sat, 14 Mar 2009 16:28:03 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=221</guid>
		<description><![CDATA[Based on a comment on the Browser.php page I added support for the iPod today. I opted to place both the iPhone and iPod as browsers even though they are likely using the same instance of Safari. Additionally I added support for the iPod and iPhone as platforms. Thanks for the comments; enjoy!]]></description>
			<content:encoded><![CDATA[<p>Based on a comment on the <a href="http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/">Browser.php</a> page I added support for the iPod today.  I opted to place both the iPhone and iPod as browsers even though they are likely using the same instance of Safari.  Additionally I added support for the iPod and iPhone as platforms.  Thanks for the comments; enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2009/03/browser-php-updated-to-v1-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated Browser.php to version 1.2</title>
		<link>http://chrisschuld.com/2008/12/updated-browserphp-to-version-12/</link>
		<comments>http://chrisschuld.com/2008/12/updated-browserphp-to-version-12/#comments</comments>
		<pubDate>Tue, 09 Dec 2008 14:45:42 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=187</guid>
		<description><![CDATA[The browser detection project in php (Browser.php) has been updated to version 1.2 based on suggestions I received in the comments. The new version is available for download in the project pages. Thanks to all those who have emailed and commented on the script.]]></description>
			<content:encoded><![CDATA[<p>The browser detection project in php (<a href="http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/">Browser.php</a>) has been updated to version 1.2 based on suggestions I received in the comments.  The new version is <a href="http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/">available for download</a> in the project pages.</p>
<p>Thanks to all those who have emailed and commented on the script.</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/12/updated-browserphp-to-version-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Browser.php &#8211; version 1.1 &#8211; released!</title>
		<link>http://chrisschuld.com/2008/11/browser-php-version-11-released/</link>
		<comments>http://chrisschuld.com/2008/11/browser-php-version-11-released/#comments</comments>
		<pubDate>Sat, 08 Nov 2008 07:37:13 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Browser.php]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=149</guid>
		<description><![CDATA[I updated the Browser.php class today to detect Google&#8217;s Chrome Browser. Additionally, thanks to an idea from Daniel &#8216;mavrick&#8217; Lang, I added isBrowser($browserName) as a function to version 1.1. Visit the Browser.php class page today to grab the update! Interested in a PHP4 version? Daniel is maintaining a version for PHP4. Example Usage: 1 2 [...]]]></description>
			<content:encoded><![CDATA[<p>I updated the <a href="http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/">Browser.php class</a> today to detect Google&#8217;s Chrome Browser.  Additionally, thanks to an idea from <a href="http://mavrick.id.au/">Daniel &#8216;mavrick&#8217; Lang</a>, I added <strong>isBrowser($browserName)</strong> as a function to version 1.1.</p>
<p>Visit the <a href="http://chrisschuld.com/projects/browser-php-detecting-a-users-browser-from-php/">Browser.php class page</a> today to grab the update!</p>
<p>Interested in a PHP4 version?  Daniel is <a href="http://mavrick.id.au/programming/2008/the-all-new-php-browser-detection/">maintaining a version for PHP4</a>.</p>
<p>Example Usage:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&nbsp;
&nbsp;
<span style="color: #000088;">$browser</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Browser<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getBrowser</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">==</span> Browser<span style="color: #339933;">::</span><span style="color: #004000;">BROWSER_FIREFOX</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getVersion</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;=</span> <span style="color: #cc66cc;">2</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'You have FireFox version 2 or greater'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">// AND NOW...</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$browser</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isBrowser</span><span style="color: #009900;">&#40;</span>Browser<span style="color: #339933;">::</span><span style="color: #004000;">BROWSER_CHROME</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;p&gt;&lt;strong&gt;Hi Google Chrome User!&lt;/strong&gt;&lt;/p&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/11/browser-php-version-11-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery.suggest 1.2</title>
		<link>http://chrisschuld.com/2008/07/jquery-suggest-1-2/</link>
		<comments>http://chrisschuld.com/2008/07/jquery-suggest-1-2/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 18:57:12 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=42</guid>
		<description><![CDATA[A few people have contacted in the past about what I did to get IDs to work on Peter’s Script over at vulgarisoips.com (see the original post here). Peter’s script works great; but for my needs I had to add an ID to the suggestion as a way to relate the selected value back to [...]]]></description>
			<content:encoded><![CDATA[<p>A few people have contacted in the past about what I did to get IDs to work on Peter’s Script over at <a href="http://vulgarisoips.com">vulgarisoips.com</a> (<a href="http://www.vulgarisoip.com/2007/08/06/jquerysuggest-11/">see the original post here</a>).</p>
<p>Peter’s script works great; but for my needs I had to add an ID to the suggestion as a way to relate the selected value back to a dB entry.</p>
<p>First, I needed a way to tell the script where to add the results to in the DOM instead of having the script add the object automatically.  I created a new option called <strong>attachObject </strong>which allowed me to control the object in the DOM.  This allowed me to do this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'#name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span>suggest<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/suggest/client'</span><span style="color: #339933;">,</span><span style="color: #009900;">&#123;</span>dataContainer<span style="color: #339933;">:</span><span style="color: #0000ff;">'#cid'</span><span style="color: #339933;">,</span> attachObject<span style="color: #339933;">:</span><span style="color: #0000ff;">'#sresults'</span><span style="color: #339933;">,</span> onSelect<span style="color: #339933;">:</span> myFunction <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Note how above I use <strong>#sresults</strong> as my object to attach the suggestion results to.  In my edits if you leave out the <strong>attachObject </strong>it will still build the &lt;ul&gt; object for you without any issues.</p>
<p>Next, I needed a way to have the ID go along with the representation values (ex. a hash-like key, value relationship).  To do this I added two other options to the script: one called <strong>dataContainer </strong>and one called dataDelimiter which I set to a default value of tab (\t).  The <strong>dataContainer </strong>is an ID of an input box which holds the database ID of the selected object in the suggest box.  The <strong>dataDelimiter </strong>is the delimiter for the payload which contains the key values pairs separated by the <strong>dataDelimiter</strong>.  (Note: the &#8220;row&#8221; delimiter is still a new line character).</p>
<p>In my XHTML I have this:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cid&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cid&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;-1&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;name&quot;</span> <span style="color: #000066;">size</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;30&quot;</span> <span style="color: #000066;">maxlength</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;128&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;suggestResults&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>(and I use the script stub above&#8230;)</p>
<p>On the server I have /suggest/client do something similar to this:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">.</span>
<span style="color: #339933;">.</span>
<span style="color: #339933;">.</span>
<span style="color: #000088;">$stmt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">execute</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$stmt</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetchAll</span><span style="color: #009900;">&#40;</span>PDO<span style="color: #339933;">::</span><span style="color: #004000;">FETCH_OBJ</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$row</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$row-&gt;displayName}</span><span style="color: #000099; font-weight: bold;">\t</span><span style="color: #006699; font-weight: bold;">{$row-&gt;tmpid}</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>NOTE:</strong> I do make an assumption your keys will always be unique; as I append a <strong>s_</strong> to the key to construct the necessary &lt;li&gt; items (need to keep them unique for DOM reasons).</p>
<p>Here is the original version of Peter&#8217;s script: <a href="http://chrisschuld.com/wp-content/uploads/2008/07/suggestoriginal.txt">Original Version 1.1 (in text)</a></p>
<p>Here are my updates (let us call it v1.2):<a href="http://chrisschuld.com/wp-content/uploads/2008/07/suggestupdated.txt">Updated Version 1.2 (in text)</a></p>
<p><em>In hindsight there are definitely better ways to do this but this solution is working great still (this idea and solution go back to August of 2007); and I will always suggest &#8220;working effectively in production&#8221; is always better than how it &#8220;should be.&#8221;</em></p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2008/07/jquery-suggest-1-2/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Missing phpize?</title>
		<link>http://chrisschuld.com/2007/07/missing-phpize/</link>
		<comments>http://chrisschuld.com/2007/07/missing-phpize/#comments</comments>
		<pubDate>Fri, 13 Jul 2007 20:06:08 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/2007/07/missing-phpize/</guid>
		<description><![CDATA[In an attempt to add the PECL Upload Progress package, I received the following error: &#91;root@zebra cbschuld&#93;# pecl install uploadprogress-beta downloading uploadprogress-0.3.0.tgz ... Starting to download uploadprogress-0.3.0.tgz &#40;4,677 bytes&#41; .....done: 4,677 bytes 3 source files, building running: phpize sh: phpize: command not found ERROR: `phpize' failed Hmmm, it turns out I never added the package [...]]]></description>
			<content:encoded><![CDATA[<p>In an attempt to add the PECL <a href="http://pecl.php.net/package/uploadprogress" target="_blank">Upload Progress</a> package, I received  the following error:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>root<span style="color: #000000; font-weight: bold;">@</span>zebra cbschuld<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #666666; font-style: italic;"># pecl install uploadprogress-beta</span>
downloading uploadprogress-0.3.0.tgz ...
Starting to download uploadprogress-0.3.0.tgz <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">4</span>,<span style="color: #000000;">677</span> bytes<span style="color: #7a0874; font-weight: bold;">&#41;</span>
.....done: <span style="color: #000000;">4</span>,<span style="color: #000000;">677</span> bytes
<span style="color: #000000;">3</span> <span style="color: #7a0874; font-weight: bold;">source</span> files, building
running: phpize
<span style="color: #c20cb9; font-weight: bold;">sh</span>: phpize: <span style="color: #7a0874; font-weight: bold;">command</span> not found
ERROR: <span style="color: #000000; font-weight: bold;">`</span>phpize<span style="color: #ff0000;">' failed</span></pre></div></div>

<p>Hmmm, it turns out I never added the package php-devel (oops).  If you are missing phpize on your machine add it with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #c20cb9; font-weight: bold;">install</span> php-devel</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2007/07/missing-phpize/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
