<?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>Rob Thompson &#187; PHP Code</title>
	<atom:link href="http://sun3.org/archives/category/php-code/feed" rel="self" type="application/rss+xml" />
	<link>http://sun3.org</link>
	<description>Rob Thompson&#039;s Blog</description>
	<lastBuildDate>Thu, 29 Sep 2011 01:24:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>praux.com API</title>
		<link>http://sun3.org/archives/301</link>
		<comments>http://sun3.org/archives/301#comments</comments>
		<pubDate>Thu, 29 Oct 2009 03:33:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[PHP Code]]></category>

		<guid isPermaLink="false">http://sun3.org/?p=301</guid>
		<description><![CDATA[If you havn&#8217;t seen praux.com&#8216;s fancy API, you should definitely have a look. Here&#8217;s an interface I put together that uses the API to display praux-hosted resumes on your own site. Praux is a new site that allows you to assemble, maintain and share your resume with others. The REST design and personal URLs at [...]]]></description>
		<wfw:commentRss>http://sun3.org/archives/301/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GroupWise 6.5 to Zimbra AddressBook</title>
		<link>http://sun3.org/archives/1</link>
		<comments>http://sun3.org/archives/1#comments</comments>
		<pubDate>Sat, 22 Aug 2009 15:17:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Code]]></category>

		<guid isPermaLink="false">http://sun3.org/?p=1</guid>
		<description><![CDATA[Here is some code to translate a GroupWise 6.5 address book into a format that Zimbra can understand. nab2zimbra.php &#60;?php function get_value_by_mapi&#40;$zimbraid, $nabid,$nabvalues,$nabfields&#41; &#123; if &#40;$nabid == &#34;&#34;&#41; &#123; return &#34;&#34;; &#125; for &#40;$i=0;$i&#60;sizeof&#40;$nabfields&#41;;$i++&#41; &#123; if &#40;$nabfields&#91;$i&#93;&#91;mapitag&#93; == $nabid&#41; &#123; return $nabvalues&#91;$i&#93;; &#125; &#125; &#125; &#160; if &#40;count&#40;$argv&#41; &#60; 2&#41; &#123; echo &#34;Usage: php nab2zimbra.php [...]]]></description>
		<wfw:commentRss>http://sun3.org/archives/1/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switch vs. If</title>
		<link>http://sun3.org/archives/88</link>
		<comments>http://sun3.org/archives/88#comments</comments>
		<pubDate>Sun, 27 Jan 2008 17:32:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Code]]></category>

		<guid isPermaLink="false">http://sun3.org/?p=88</guid>
		<description><![CDATA[Often, with little rhyme or reason behind it, I choose between using a switch condition or an if-else statement while coding simple condition matches in PHP. I got curious about which is actually more efficient at matching a random integer with a set of conditionals. So, I setup a script to create a set of [...]]]></description>
		<wfw:commentRss>http://sun3.org/archives/88/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>PHP and Solaris: getcwd() Behavior</title>
		<link>http://sun3.org/archives/100</link>
		<comments>http://sun3.org/archives/100#comments</comments>
		<pubDate>Sat, 10 Nov 2007 17:38:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Code]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://sun3.org/?p=100</guid>
		<description><![CDATA[The Solaris OS has implemented, for quite some time, a permission restriction with respect to when getcwd() will return a full/real path under certain conditions. This has at least been since SunOS 5.8 and continuing on into 5.10. Many functions within the PHP codebase relied upon a universally working getcwd() [C] call to expand paths [...]]]></description>
		<wfw:commentRss>http://sun3.org/archives/100/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wapache &#8211; Win GUI Framework</title>
		<link>http://sun3.org/archives/103</link>
		<comments>http://sun3.org/archives/103#comments</comments>
		<pubDate>Mon, 29 Oct 2007 21:38:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Other Code]]></category>
		<category><![CDATA[PHP Code]]></category>

		<guid isPermaLink="false">http://sun3.org/?p=103</guid>
		<description><![CDATA[Here is a project that deserves much more attention: http://wapache.sourceforge.net. It is a modified Apache installation for Windows that links the power of apache (including PHP/Perl/etc. extensions) with the Windows GUI to create GUI windows applications simply and easily by way of custom apache Directives that link an Internet Explorer instance to the Windows GUI [...]]]></description>
		<wfw:commentRss>http://sun3.org/archives/103/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multipart Mime Headers in PHP</title>
		<link>http://sun3.org/archives/107</link>
		<comments>http://sun3.org/archives/107#comments</comments>
		<pubDate>Sun, 16 Sep 2007 21:39:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Code]]></category>

		<guid isPermaLink="false">http://sun3.org/?p=107</guid>
		<description><![CDATA[Here is a snippet of code that shows how multi-part mime headers can be assembled without the help of a mailer class. &#60;? $mime_boundary=md5&#40;time&#40;&#41;&#41;; $headers .= 'From: My Email &#60;me@company.com&#62;' . &#34;\n&#34;; $headers .= 'MIME-Version: 1.0'. &#34;\n&#34;; $headers .= &#34;Content-Type: multipart/mixed; boundary=\&#34;&#34;.$mime_boundary.&#34;\&#34;&#34;. &#34;\n&#34;; &#160; $msg .= &#34;--&#34;.$mime_boundary. &#34;\n&#34;; $msg .= &#34;Content-Type: text/plain; charset=iso-8859-1&#34;. &#34;\n&#34;; $msg [...]]]></description>
		<wfw:commentRss>http://sun3.org/archives/107/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Oracle Tree Relationships</title>
		<link>http://sun3.org/archives/285</link>
		<comments>http://sun3.org/archives/285#comments</comments>
		<pubDate>Fri, 17 Aug 2007 10:59:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other Code]]></category>
		<category><![CDATA[PHP Code]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://sun3.org/?p=285</guid>
		<description><![CDATA[Working with parent-child relationships between rows in tables can be a headache to deal with, especially if you need to display those relationships graphically. However, Oracle provides some great constructs that make this much easier to deal with. Here are some of the challenges that I ran into and the solutions I came up with: [...]]]></description>
		<wfw:commentRss>http://sun3.org/archives/285/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP: Find Ophaned Files</title>
		<link>http://sun3.org/archives/297</link>
		<comments>http://sun3.org/archives/297#comments</comments>
		<pubDate>Thu, 16 Aug 2007 11:07:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP Code]]></category>
		<category><![CDATA[UNIX]]></category>

		<guid isPermaLink="false">http://sun3.org/?p=297</guid>
		<description><![CDATA[For a project at work, I needed a good way to find orphaned files (files that are not linked-to by anything) in a web directory. I looked for a good [free] application and could not find anything worthwhile except for a few windows applications. This PHP script searches recursively through an entire directory of files [...]]]></description>
		<wfw:commentRss>http://sun3.org/archives/297/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

