<?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>/home/todd &#187; php</title>
	<atom:link href="http://dropline.net/topics/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://dropline.net</link>
	<description>Musings, music, food and photography</description>
	<lastBuildDate>Fri, 17 Jun 2011 19:42:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>PHP ZIP Extension for MAMP</title>
		<link>http://dropline.net/2010/10/php-zip-extension-for-mamp/</link>
		<comments>http://dropline.net/2010/10/php-zip-extension-for-mamp/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 04:22:32 +0000</pubDate>
		<dc:creator>Todd Kulesza</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mamp]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[zip]]></category>

		<guid isPermaLink="false">http://dropline.net/?p=410</guid>
		<description><![CDATA[Do you use MAMP as a web development testing environment on your Mac? Do you need the PHP ZIP extension for dealing with archive files? Are you running Mac OS X 10.6 Snow Leopard? I do, and found making these tools play nice together to be far harder than it should have.  If you need [...]]]></description>
			<content:encoded><![CDATA[<p>Do you use <a href="http://www.mamp.info">MAMP</a> as a web development testing environment on your Mac?</p>
<p>Do you need the PHP ZIP extension for dealing with archive files?</p>
<p>Are you running Mac OS X 10.6 Snow Leopard?</p>
<p>I do, and found making these tools play nice together to be far harder than it should have.  If you need to fix a similar setup, here are the steps that finally worked for me (on Mac OS X 10.6.4 with MAMP 1.9):</p>
<ol>
<li>Install <a href="http://developer.apple.com/technologies/tools/xcode.html">XCode</a> if you don&#8217;t already have it (we&#8217;re going to be doing a bit of compiling).</li>
<li>Download the <a href="http://www.mamp.info/en/downloads/index.html">MAMP source code components</a> (available towards the bottom of the page).</li>
<li>When the MAMP source code package opens, go into the MAMP_src folder and double-click the <em>php-5.3.2.tar.gz</em> file (if you are using a different version of PHP, replace <em>5.3.2</em> with your actual version number).</li>
<li>You should now have a <em>php-5.3.2</em> folder in your <em>Downloads</em> folder.  Open up Terminal and cd to <em>~/Downloads/php-5.3.2</em>.:<br />
<code>cd ~/Downloads/php-5.3.2/</code></li>
<li>Install the <em>pcre.h</em> header file (we need it to compile the extension):<br />
<code>sudo cp ext/pcre/pcrelib/pcre.h /usr/include/php/ext/pcre/</code></li>
<li>Configure PHP for i386 architecture:<br />
<code>CFLAGS="-arch i386" ./configure</code></li>
<li>Configure the ZIP extension for i386 architecture:<br />
<code>cd ext/zip; CFLAGS="-arch i386" ./configure</code></li>
<li>Build the extension:<br />
<code>make</code></li>
<li>Install the extension:<br />
<code>cp modules/zip.so /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/</code></li>
<li>Enable the extension by opening <em>/Applications/MAMP/conf/php5.3/php.ini</em> and appending the following line:<br />
<em>extension=zip.so </em></li>
<li>Remove the <em>pcre.h</em> header file we installed earlier, we don&#8217;t need it anymore.</li>
<li>Restart MAMP.  If everything worked properly, you&#8217;ll be able to goto http://localhost/MAMP, click on <em>phpInfo</em>, and see <em>zip </em>in the list of enabled extensions.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://dropline.net/2010/10/php-zip-extension-for-mamp/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>New Photo Albums</title>
		<link>http://dropline.net/2008/11/new-photo-albums/</link>
		<comments>http://dropline.net/2008/11/new-photo-albums/#comments</comments>
		<pubDate>Mon, 24 Nov 2008 06:26:45 +0000</pubDate>
		<dc:creator>Todd Kulesza</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Website Administration]]></category>
		<category><![CDATA[atom]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[lightroom]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[rss]]></category>
		<category><![CDATA[shadowbox]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[workflow]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://dropline.net/?p=93</guid>
		<description><![CDATA[Today I finished working out the kinks in my new photo album workflow.  The result: all of my photo sets since I moved to Corvallis are now available on the site&#8217;s Photography section.  I&#8217;m keeping the Flickr site for my best photography, but I&#8217;ve had all of these images sitting in Lightroom that I suspect [...]]]></description>
			<content:encoded><![CDATA[<p>Today I finished working out the kinks in my new photo album workflow.  The result: all of my photo sets since I moved to Corvallis are now available on the site&#8217;s <a href="/galleries">Photography</a> section.  I&#8217;m keeping the <a href="http://flickr.com/photos/toddler">Flickr</a> site for my best photography, but I&#8217;ve had all of these images sitting in Lightroom that I suspect friends would love copies of, so now they&#8217;re available.</p>
<p>For the curious, I do all of my photo editing in Adobe Lightroom (and occasionally Photoshop).  Using a heavily-modified version of the <a href="http://www.theturninggate.net/lightroom/ttg-shadowbox-gallery">TTG Shadowbox Gallery Template</a>, I export each album and upload the static HTML and image files to my server.  Nothing terribly exciting there, but now it gets interesting.  I wanted to have an index page that automatically shows all of my galleries, displaying the most recent first.  TTG supplies an <a href="http://theturninggate.net/lightroom/ttg-xml-auto-index">XML AutoIndex</a> module that does nearly everything I want, so I integrated that as my index page and hacked the PHP scripts to include better date and description information.  Finally, I wanted to provide an RSS feed of my photo albums, so people won&#8217;t need to constantly visit my website if they&#8217;re looking for new photos.  A quick modification to the XML AutoIndex script did the trick, so now you can subscribe to an <a title="Atom photo album feed" href="/galleries/atom.php">Atom feed of my photo albums</a>!</p>
<p>Everything seems to be working fine for my on Firefox and Safari.  If anyone notices problems with the photo albums or feed, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://dropline.net/2008/11/new-photo-albums/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

