<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.franzone.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>franzone.com</title>
	
	<link>http://www.franzone.com</link>
	<description>thoughts of a web geek</description>
	<lastBuildDate>Sun, 18 Jul 2010 19:35:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.franzone.com/franzone" /><feedburner:info uri="franzone" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>30.527195</geo:lat><geo:long>-87.214855</geo:long><image><url>http://www.feedburner.com/fb/images/pub/fb_pwrd.gif</url></image><feedburner:emailServiceId>franzone</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.franzone.com%2Ffranzone" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.franzone.com%2Ffranzone" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.franzone.com%2Ffranzone" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.franzone.com/franzone" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.franzone.com%2Ffranzone" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.franzone.com%2Ffranzone" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.franzone.com%2Ffranzone" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><item>
		<title>Windows Vista crcdisk.sys – System Won’t Boot</title>
		<link>http://feeds.franzone.com/~r/franzone/~3/2f9GDQmBBvU/</link>
		<comments>http://www.franzone.com/2010/07/18/windows-vista-crcdisk-sys-system-wont-boot/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 19:35:45 +0000</pubDate>
		<dc:creator>Jonathan Franzone</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[crcdisk.sys]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Vista]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.franzone.com/?p=1390</guid>
		<description>I recently had a friend call me in need of computer repair assistance. I&amp;#8217;ll save you the many hours of troubleshooting and simply list the fix here. The Dreaded crcdisk.sys I found this symptom of the problem by booting into Safe Mode and watching the drivers load. I noticed that it always hung for a [...]</description>
			<content:encoded><![CDATA[<p>I recently had a friend call me in need of computer repair assistance. I&#8217;ll save you the many hours of troubleshooting and simply list the fix here.</p>
<h3>The Dreaded crcdisk.sys</h3>
<p>I found this <em>symptom</em> of the problem by booting into Safe Mode and watching the drivers load. I noticed that it always hung for a long time on the crcdisk.sys file. Well, if you perform a search on Google for <a href="http://www.google.com/search?q=windows+vista+crcdisk.sys">&#8220;windows vista crcdisk.sys&#8221;</a> you will find a plethora of woes from computer users desperately trying to regain the functionality of their PC. There are also a plethora of <em>fixes</em>, <em>advice</em> and <em>this worked for me</em> posts. I tried many of these to no avail.</p>
<h3>The Road To Recovery</h3>
<p>The laptop I was working on was a Toshiba laptop and it had a system restore disk. Great! Sort of. Restoring the system to factory condition from the disk (after the owner had backed up their data of course) resulted in a system that was broken and still had the problem listed above. Hmmm.</p>
<p>Another operating system perhaps? I installed Windows XP from scratch. Worked great. I installed Windows Vista SP2 from scratch (another disk). Worked great. Re-tried the system restore from Toshiba. No good.</p>
<p>At this point I figured I was just going to install Vista from scratch. So I reinstalled Vista and downloaded the Toshiba drivers from their website. One by one I started installing the drivers. Until I got to the driver for a flash media card reader (front of laptop). Bam! It froze up during the install. So I rolled that change back using Windows System Restore and then continued with all of the other drivers. No problems. I tried the flash media driver one more time just to be sure, and sure enough it failed again. That&#8217;s good! Predictability is key in diagnosing computer problems.</p>
<h3>The Solution</h3>
<p>So now I knew that the flash media card reader was probably bad, and so when the drivers were applied it froze the system. I unzipped the driver distribution and made a list of the files in it. Then I went back and restored the system from the Toshiba system restore disk. I did NOT however, reboot and continue the installation. I rebooted to a Windows system disk and brought up the recovery console (command prompt). I then went into the Windows directory (C:\Windows) and deleted ALL of the files that I had listed from the flash media card driver. One reboot later and the system was continuing the installation all the way to success.</p>
<h3>Suggestions</h3>
<p>SO&#8230; what does this say about our crcdisk.sys error? Absolutely nothing! Well, almost. It makes sense (to me at least) because the system was trying to access a disk and it was failing, thus the <em>&#8220;disk&#8221;</em> part of <em>crcdisk.sys</em>. So my suggestion for solving the above problem would be to put your troubleshooting hat on. You can try the steps above or one of the many that you&#8217;ll find on the internet, but keep this in mind. Just make one small change at a time until you find something that makes a difference. That should give you some good clues as to the root of the problem.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/paIhXhfQgDAwExvZy1oV1CshJis/0/da"><img src="http://feedads.g.doubleclick.net/~a/paIhXhfQgDAwExvZy1oV1CshJis/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/paIhXhfQgDAwExvZy1oV1CshJis/1/da"><img src="http://feedads.g.doubleclick.net/~a/paIhXhfQgDAwExvZy1oV1CshJis/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.franzone.com/~ff/franzone?a=2f9GDQmBBvU:yVTBzCKon_w:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/franzone?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=2f9GDQmBBvU:yVTBzCKon_w:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/franzone?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=2f9GDQmBBvU:yVTBzCKon_w:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/franzone?i=2f9GDQmBBvU:yVTBzCKon_w:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=2f9GDQmBBvU:yVTBzCKon_w:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/franzone?i=2f9GDQmBBvU:yVTBzCKon_w:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=2f9GDQmBBvU:yVTBzCKon_w:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/franzone?i=2f9GDQmBBvU:yVTBzCKon_w:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=2f9GDQmBBvU:yVTBzCKon_w:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/franzone?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=2f9GDQmBBvU:yVTBzCKon_w:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/franzone?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=2f9GDQmBBvU:yVTBzCKon_w:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/franzone?i=2f9GDQmBBvU:yVTBzCKon_w:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=2f9GDQmBBvU:yVTBzCKon_w:K2GI5_zWnM0"><img src="http://feeds.feedburner.com/~ff/franzone?i=2f9GDQmBBvU:yVTBzCKon_w:K2GI5_zWnM0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/franzone/~4/2f9GDQmBBvU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.franzone.com/2010/07/18/windows-vista-crcdisk-sys-system-wont-boot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.franzone.com/2010/07/18/windows-vista-crcdisk-sys-system-wont-boot/</feedburner:origLink></item>
		<item>
		<title>Dump A MySQL Database To YAML Using PHP</title>
		<link>http://feeds.franzone.com/~r/franzone/~3/MOO9ffEJZAE/</link>
		<comments>http://www.franzone.com/2010/07/16/dump-a-mysql-database-to-yaml-using-php/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 11:28:31 +0000</pubDate>
		<dc:creator>Jonathan Franzone</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[YAML]]></category>

		<guid isPermaLink="false">http://www.franzone.com/?p=1407</guid>
		<description>The Problem I was recently working on a project that is built on WordPress / BuddyPress. I built up some content using the CMS features of WordPress in my development server and then I transfered the WordPress content to a beta server using the export/import functionality. That kind of stinks having to do that every [...]</description>
			<content:encoded><![CDATA[<h3>The Problem</h3>
<p>I was recently working on a project that is built on <a href="http://wordpress.org/">WordPress</a> / <a href="http://buddypress.org/">BuddyPress</a>. I built up some content using the CMS features of WordPress in my development server and then I transfered the WordPress content to a beta server using the export/import functionality. That kind of stinks having to do that every time I want to push updates to my beta server. So I looked into using <a href="http://www.doctrine-project.org/">Doctrine</a> to generate data fixtures which I could repeatedly run against the different database. Doctrine supports <a href="http://www.yaml.org/">YAML</a> files, which are extremely easy to edit by hand, so it seemed like a good idea.</p>
<p>So what&#8217;s the problem? Well, I didn&#8217;t currently have any of my data in YAML files. I didn&#8217;t want to had edit them or do some sort of copy and paste madness. So, I wrote a script in <a href="http://php.net/">PHP</a> to dump my data into a YAML file.</p>
<h3>The Solution</h3>
<p>I&#8217;m not going to do much explanation because the code is fairly well commented. You can <a href="http://www.franzone.com/downloads/MySQLToYaml.zip">download the file here</a> or you could just copy and paste it from below, but you may get some weird character conversions. The script can generate YAML for all the tables in your database, for a specific list of tables or you can specify an SQL query. Just execute the script without any arguments to see the usage statement (or just read it at the top of the file). Without further ado, here&#8217;s the script.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">#!/usr/bin/env php
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/* ========================================================
 * File           : dumpyaml.php
 * Date           : July 15, 2010
 * Author         : Jonathan Franzone
 * Author Website : http://www.franzone.com
 *
 * Script to generate YAML (http://www.yaml.org/) from
 * a MySQL database. Will generate YAML for either all
 * tables in the specified database, only the specified
 * tables in the specified database or only the given
 * SQL query.
 * ========================================================
 */</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* ========================================================
 * Configuration (read from command-line)
 * ========================================================
 */</span>
<span style="color: #000088;">$DBHOST</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$DBUSER</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$DBPASS</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$DBNAME</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$TABLES</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$DBQUERY</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$QUERYNAME</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$CONVERT_NAME</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * Prints the usage for this script
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> usage<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;
MySQLToYaml [Jonathan Franzone; http://www.franzone.com]
&nbsp;
  Script to generate YAML (http://www.yaml.org/) from
  a MySQL database. Will generate YAML for either all
  tables in the specified database, only the specified
  tables in the specified database or only the given
  SQL query.
&nbsp;
Usage : dumpyaml.php [options] -d &lt;database&gt;
        dumpyaml.php [options] -d &lt;database&gt; -t table1,table2
        dumpyaml.php [options] -d &lt;database&gt; -q <span style="color: #000099; font-weight: bold;">\&quot;</span>SELECT * FROM `mytable`<span style="color: #000099; font-weight: bold;">\&quot;</span> -qn custom_name
&nbsp;
  -h &lt;host&gt;       MySQL database host
  -u &lt;user&gt;       MySQL username
  -p &lt;pass&gt;       MySQL password
  -d &lt;database&gt;   Name of the MySQL database to dump
  -t &lt;table(s)&gt;   Comma delimited list of tables to dump from database
  -q <span style="color: #000099; font-weight: bold;">\&quot;</span>&lt;query&gt;<span style="color: #000099; font-weight: bold;">\&quot;</span>    SQL query to dump
  -qn &lt;query name&gt;  Name of the <span style="color: #000099; font-weight: bold;">\&quot;</span>table<span style="color: #000099; font-weight: bold;">\&quot;</span> when using the -q option
  -n              Convert table names to class names
&nbsp;
&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * Reads/parses the command-line arguments
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> read_args<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$argc</span><span style="color: #339933;">,</span> <span style="color: #000088;">$argv</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DBHOST</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DBUSER</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DBPASS</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DBNAME</span><span style="color: #339933;">,</span> <span style="color: #000088;">$TABLES</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DBQUERY</span><span style="color: #339933;">,</span> <span style="color: #000088;">$QUERYNAME</span><span style="color: #339933;">,</span> <span style="color: #000088;">$CONVERT_NAMES</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000088;">$arg</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_shift</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$arg</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'-h'</span><span style="color: #339933;">:</span>
        <span style="color: #000088;">$DBHOST</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_shift</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'-u'</span><span style="color: #339933;">:</span>
        <span style="color: #000088;">$DBUSER</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_shift</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'-p'</span><span style="color: #339933;">:</span>
        <span style="color: #000088;">$DBPASS</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_shift</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'-d'</span><span style="color: #339933;">:</span>
        <span style="color: #000088;">$DBNAME</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_shift</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'-t'</span><span style="color: #339933;">:</span>
        <span style="color: #000088;">$TABLES</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #339933;">,</span> <span style="color: #990000;">array_shift</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'-q'</span><span style="color: #339933;">:</span>
        <span style="color: #000088;">$DBQUERY</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_shift</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'-qn'</span><span style="color: #339933;">:</span>
        <span style="color: #000088;">$QUERYNAME</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array_shift</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$argv</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
      <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'-n'</span><span style="color: #339933;">:</span>
        <span style="color: #000088;">$CONVERT_NAMES</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// Validate Command-Line Arguments</span>
  <span style="color: #000088;">$retVal</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DBHOST</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;">&quot;-h &lt;host&gt; is required<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$retVal</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DBUSER</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;">&quot;-u &lt;user&gt; is required<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$retVal</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DBPASS</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;">&quot;-p &lt;pass&gt; is required<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$retVal</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DBNAME</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;">&quot;-d &lt;database&gt; is required<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$retVal</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$TABLES</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DBQUERY</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;">&quot;-t &lt;table(s)&gt; and -q <span style="color: #000099; font-weight: bold;">\&quot;</span>&lt;query&gt;<span style="color: #000099; font-weight: bold;">\&quot;</span> are mutually exclusive options<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$retVal</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DBQUERY</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$QUERYNAME</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;">&quot;-qn &lt;query name&gt; is required when using -q <span style="color: #000099; font-weight: bold;">\&quot;</span>&lt;query&gt;<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$retVal</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$retVal</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * Takes a table name with underscores and converts it to something
 * like a class name (CAML case and remove the underscores).
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> convert_name_to_class<span style="color: #009900;">&#40;</span><span style="color: #000088;">$string</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// Return Value</span>
  <span style="color: #000088;">$retVal</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000088;">$tokens</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'_'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$string</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;">$tokens</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$token</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$retVal</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">strtoupper</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$token</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</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: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$token</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$retVal</span> <span style="color: #339933;">.=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$token</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// Return Value</span>
  <span style="color: #b1b100;">return</span> <span style="color: #000088;">$retVal</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * Takes a SQL query and dumps YAML
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> sql_to_yaml<span style="color: #009900;">&#40;</span><span style="color: #000088;">$link</span><span style="color: #339933;">,</span> <span style="color: #000088;">$sql</span><span style="color: #339933;">,</span> <span style="color: #000088;">$table</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$CONVERT_NAMES</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// Run the query</span>
  <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$sql</span><span style="color: #339933;">,</span> <span style="color: #000088;">$link</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Output the table name</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$CONVERT_NAMES</span> <span style="color: #339933;">===</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> ? convert_name_to_class<span style="color: #009900;">&#40;</span><span style="color: #000088;">$table</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;:<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$table}</span>:<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Loop over the result set</span>
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_assoc</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
      <span style="color: #666666; font-style: italic;">// Output the row/collection indicator</span>
      <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;  -<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
      <span style="color: #666666; font-style: italic;">// Loop over the columns output names and values</span>
      <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$key</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$value</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// Do have any newlines or line feeds?</span>
        <span style="color: #000088;">$literalFlag</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\r</span>&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!==</span> <span style="color: #009900; font-weight: bold;">FALSE</span> <span style="color: #339933;">||</span> <span style="color: #990000;">strpos</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$value</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!==</span> <span style="color: #009900; font-weight: bold;">FALSE</span><span style="color: #009900;">&#41;</span> ? <span style="color: #0000ff;">&quot;| &quot;</span> <span style="color: #339933;">:</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #666666; font-style: italic;">// Output the key/value pair</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;    <span style="color: #006699; font-weight: bold;">{$key}</span>: <span style="color: #006699; font-weight: bold;">{$literalFlag}</span><span style="color: #006699; font-weight: bold;">{$value}</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// Free the result resources</span>
  <span style="color: #990000;">mysql_free_result</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * Retrieves the database tables from the database and puts them into the $TABLES array
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> get_database_tables<span style="color: #009900;">&#40;</span><span style="color: #000088;">$link</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$TABLES</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// Run the query</span>
  <span style="color: #000088;">$result</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SHOW TABLES'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$link</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$row</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_fetch_row</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #000088;">$TABLES</span><span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$row</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// Free the result resources</span>
  <span style="color: #990000;">mysql_free_result</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009933; font-style: italic;">/**
 * Main program loop
 */</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>read_args<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// Open database connection</span>
  <span style="color: #000088;">$link</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DBHOST</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DBUSER</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DBPASS</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: #000088;">$link</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Could not connect to DB [<span style="color: #006699; font-weight: bold;">{$DBUSER}</span>:<span style="color: #006699; font-weight: bold;">{$DBPASS}</span>@<span style="color: #006699; font-weight: bold;">{$DBHOST}</span>] :: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">mysql_error</span><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: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// Select the database</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DBNAME</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Output header</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;---<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Query Mode</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$DBQUERY</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      sql_to_yaml<span style="color: #009900;">&#40;</span><span style="color: #000088;">$link</span><span style="color: #339933;">,</span> <span style="color: #000088;">$DBQUERY</span><span style="color: #339933;">,</span> <span style="color: #000088;">$QUERYNAME</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
&nbsp;
      <span style="color: #666666; font-style: italic;">// If the user has not specified tables then query for them</span>
      <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$TABLES</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        get_database_tables<span style="color: #009900;">&#40;</span><span style="color: #000088;">$link</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
&nbsp;
      <span style="color: #666666; font-style: italic;">// Loop over tables and output YAML</span>
      <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$TABLES</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$tbl</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        sql_to_yaml<span style="color: #009900;">&#40;</span><span style="color: #000088;">$link</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;SELECT * FROM <span style="color: #006699; font-weight: bold;">{$tbl}</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$tbl</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
      <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// Output footer</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;...<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Could not select database [<span style="color: #006699; font-weight: bold;">{$DBNAME}</span>] :: &quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">mysql_error</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
  <span style="color: #666666; font-style: italic;">// Close Database</span>
  <span style="color: #990000;">mysql_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$link</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">else</span>
<span style="color: #009900;">&#123;</span>
  usage<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<div class="download"><a href="http://www.franzone.com/downloads/MySQLToYaml.zip">MySQLToYaml.zip</a></div>

<p><a href="http://feedads.g.doubleclick.net/~a/eijfC0c1__oqdKYeKdGsL94g4yE/0/da"><img src="http://feedads.g.doubleclick.net/~a/eijfC0c1__oqdKYeKdGsL94g4yE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/eijfC0c1__oqdKYeKdGsL94g4yE/1/da"><img src="http://feedads.g.doubleclick.net/~a/eijfC0c1__oqdKYeKdGsL94g4yE/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.franzone.com/~ff/franzone?a=MOO9ffEJZAE:-yRor6gJMkc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/franzone?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=MOO9ffEJZAE:-yRor6gJMkc:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/franzone?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=MOO9ffEJZAE:-yRor6gJMkc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/franzone?i=MOO9ffEJZAE:-yRor6gJMkc:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=MOO9ffEJZAE:-yRor6gJMkc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/franzone?i=MOO9ffEJZAE:-yRor6gJMkc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=MOO9ffEJZAE:-yRor6gJMkc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/franzone?i=MOO9ffEJZAE:-yRor6gJMkc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=MOO9ffEJZAE:-yRor6gJMkc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/franzone?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=MOO9ffEJZAE:-yRor6gJMkc:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/franzone?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=MOO9ffEJZAE:-yRor6gJMkc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/franzone?i=MOO9ffEJZAE:-yRor6gJMkc:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=MOO9ffEJZAE:-yRor6gJMkc:K2GI5_zWnM0"><img src="http://feeds.feedburner.com/~ff/franzone?i=MOO9ffEJZAE:-yRor6gJMkc:K2GI5_zWnM0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/franzone/~4/MOO9ffEJZAE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.franzone.com/2010/07/16/dump-a-mysql-database-to-yaml-using-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.franzone.com/2010/07/16/dump-a-mysql-database-to-yaml-using-php/</feedburner:origLink></item>
		<item>
		<title>Modify PHP CLI Include Path Dynamically</title>
		<link>http://feeds.franzone.com/~r/franzone/~3/L4BLVArTbnU/</link>
		<comments>http://www.franzone.com/2010/07/15/modify-php-cli-include-path-dynamically/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 16:49:53 +0000</pubDate>
		<dc:creator>Jonathan Franzone</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.franzone.com/?p=1394</guid>
		<description>I was working with an application platform that I had just downloaded today. I just wanted to check it out and play with it a bit. In the application framework was an executable script that provided some command line utility. I fired up the script and received an error like &amp;#8220;PHP Fatal error: require_once(): Failed [...]</description>
			<content:encoded><![CDATA[<p>I was working with an application platform that I had just downloaded today. I just wanted to check it out and play with it a bit. In the application framework was an executable script that provided some command line utility. I fired up the script and received an error like <em>&#8220;PHP Fatal error: require_once(): Failed opening required&#8230;&#8221;</em>. Of course non of the files from the downloaded archived were in the include path for my system, but I didn&#8217;t want to just go adding it to my php.ini file just to play around with it short term. What to do.</p>
<h3>Command Line Options</h3>
<p>First I wanted to see if there was a command line option that I could pass to PHP to tell it what <code>include_path</code> to use for just this one execution. If you execute the following you&#8217;ll see the usage:<br />
<code>php --help</code><br />
There is no <code>include_path</code> command line option, but there is the <code>-d foo[=bar]</code> option which allows us to modify any of the INI entries by key/value.</p>
<h3>A Little Parsing</h3>
<p>Now all we need to do is combine the <code>-i</code> option, which lists a bunch of information about PHP including the INI entries, with some parsing and we can get the current <code>include_path</code> value. This command will show us the current value:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">php <span style="color: #660033;">-i</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> include_path
&nbsp;
include_path =<span style="color: #000000; font-weight: bold;">&gt;</span> .:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>php:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>pear =<span style="color: #000000; font-weight: bold;">&gt;</span> .:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>php:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>pear</pre></div></div>

<p>Of course we&#8217;ll need to get <strong>just the value</strong> if we want to modify it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">php <span style="color: #660033;">-i</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> include_path <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'BEGIN{ FS=&quot; =&gt; &quot; }{ print $NF }'</span>
&nbsp;
.:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>php:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>pear</pre></div></div>

<p>In the <code>awk</code> script above you&#8217;ll see that we set the FS (field separator) system variable to split up the line we get from the <code>php -i | grep include_path</code> call. We also take advantage of the NF (number of fields) system variable to print out the last field, which happens to be the value of <code>include_path</code>.</p>
<h3>Putting It All Together</h3>
<p>Using this, we can now construct our own value to pass in to the <code>include_path</code> for PHP.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #007800;">INCPATH</span>=<span style="color: #ff0000;">&quot;<span style="color: #780078;">`php -i | grep include_path | awk 'BEGIN{ FS=&quot; =&gt; &quot; }{ printf($NF) }'`</span>:/my/custom/path&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Using include_path = <span style="color: #007800;">${INCPATH}</span>&quot;</span>
php <span style="color: #660033;">-d</span> <span style="color: #007800;">include_path</span>=<span style="color: #800000;">${INCPATH}</span> my_php_script.php
&nbsp;
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p>Note that instead of using the <code>print</code> command in our awk script we use <code>printf</code> instead. This just prevents awk from outputting a newline after it prints our data. Also note the use of back tics so that we can assign the output of an execution to a variable. We then append our own path to that and we have our new <code>include_path</code>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/ZemjwmZ4PPgmwk8vrzZSzed5JnQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/ZemjwmZ4PPgmwk8vrzZSzed5JnQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ZemjwmZ4PPgmwk8vrzZSzed5JnQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/ZemjwmZ4PPgmwk8vrzZSzed5JnQ/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.franzone.com/~ff/franzone?a=L4BLVArTbnU:3ttGpS683D4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/franzone?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=L4BLVArTbnU:3ttGpS683D4:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/franzone?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=L4BLVArTbnU:3ttGpS683D4:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/franzone?i=L4BLVArTbnU:3ttGpS683D4:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=L4BLVArTbnU:3ttGpS683D4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/franzone?i=L4BLVArTbnU:3ttGpS683D4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=L4BLVArTbnU:3ttGpS683D4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/franzone?i=L4BLVArTbnU:3ttGpS683D4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=L4BLVArTbnU:3ttGpS683D4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/franzone?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=L4BLVArTbnU:3ttGpS683D4:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/franzone?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=L4BLVArTbnU:3ttGpS683D4:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/franzone?i=L4BLVArTbnU:3ttGpS683D4:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=L4BLVArTbnU:3ttGpS683D4:K2GI5_zWnM0"><img src="http://feeds.feedburner.com/~ff/franzone?i=L4BLVArTbnU:3ttGpS683D4:K2GI5_zWnM0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/franzone/~4/L4BLVArTbnU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.franzone.com/2010/07/15/modify-php-cli-include-path-dynamically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.franzone.com/2010/07/15/modify-php-cli-include-path-dynamically/</feedburner:origLink></item>
		<item>
		<title>Mashable’s iPhone App – Flash What?</title>
		<link>http://feeds.franzone.com/~r/franzone/~3/kqJWY5Tur0I/</link>
		<comments>http://www.franzone.com/2010/06/28/mashables-iphone-app-flash-what/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 19:45:12 +0000</pubDate>
		<dc:creator>Jonathan Franzone</dc:creator>
				<category><![CDATA[Blog Babble]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mashable]]></category>

		<guid isPermaLink="false">http://www.franzone.com/?p=1383</guid>
		<description>I just opened up the Mashable app on my iPhone to view an article and received the error below stating, &amp;#8220;You need Adobe Flash Player 8 (or above) to view the charts. It is a free and lightweight installation from Adobe.com. Please click on Ok to install the same.&amp;#8221; Hey guys&amp;#8230; are you aware of [...]</description>
			<content:encoded><![CDATA[<p>I just opened up the Mashable app on my iPhone to view an article and received the error below stating, <em>&#8220;You need Adobe Flash Player 8 (or above) to view the charts. It is a free and lightweight installation from Adobe.com. Please click on Ok to install the same.&#8221;</em> Hey guys&#8230; are you aware of the whole Apple / Flash controversy? I&#8217;m guessing your iPhone app shouldn&#8217;t be prompting me to install Flash.</p>
<p><a href="http://www.franzone.com/wp-content/uploads/2010/06/iPhoneMashableFlash.png" rel='lytebox[mashables-iphone-app-flash-what]'><img class="alignnone size-full wp-image-1385" title="iPhoneMashableFlash" src="http://www.franzone.com/wp-content/uploads/2010/06/iPhoneMashableFlash.png" alt="" width="320" height="480" /></a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/7d8pfXTpbFV73nBdPLngPZFX8Ms/0/da"><img src="http://feedads.g.doubleclick.net/~a/7d8pfXTpbFV73nBdPLngPZFX8Ms/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/7d8pfXTpbFV73nBdPLngPZFX8Ms/1/da"><img src="http://feedads.g.doubleclick.net/~a/7d8pfXTpbFV73nBdPLngPZFX8Ms/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.franzone.com/~ff/franzone?a=kqJWY5Tur0I:vJ-cgDTACto:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/franzone?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=kqJWY5Tur0I:vJ-cgDTACto:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/franzone?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=kqJWY5Tur0I:vJ-cgDTACto:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/franzone?i=kqJWY5Tur0I:vJ-cgDTACto:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=kqJWY5Tur0I:vJ-cgDTACto:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/franzone?i=kqJWY5Tur0I:vJ-cgDTACto:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=kqJWY5Tur0I:vJ-cgDTACto:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/franzone?i=kqJWY5Tur0I:vJ-cgDTACto:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=kqJWY5Tur0I:vJ-cgDTACto:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/franzone?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=kqJWY5Tur0I:vJ-cgDTACto:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/franzone?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=kqJWY5Tur0I:vJ-cgDTACto:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/franzone?i=kqJWY5Tur0I:vJ-cgDTACto:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=kqJWY5Tur0I:vJ-cgDTACto:K2GI5_zWnM0"><img src="http://feeds.feedburner.com/~ff/franzone?i=kqJWY5Tur0I:vJ-cgDTACto:K2GI5_zWnM0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/franzone/~4/kqJWY5Tur0I" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.franzone.com/2010/06/28/mashables-iphone-app-flash-what/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.franzone.com/2010/06/28/mashables-iphone-app-flash-what/</feedburner:origLink></item>
		<item>
		<title>Java’s Assimilation Into Oracle</title>
		<link>http://feeds.franzone.com/~r/franzone/~3/PgnUEzM4_Jk/</link>
		<comments>http://www.franzone.com/2010/03/22/javas-assimilation-into-oracle/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 19:20:46 +0000</pubDate>
		<dc:creator>Jonathan Franzone</dc:creator>
				<category><![CDATA[Blog Babble]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.franzone.com/?p=1375</guid>
		<description>Whenever I&amp;#8217;m working with Java code I have a habit of opening up a web browser and going to http://java.sun.com immediately. From there I select the Java API Reference and away I go writing Java code. I did the same thing today and was a bit shocked that the Oracle brand has completely infiltrated the [...]</description>
			<content:encoded><![CDATA[<p>Whenever I&#8217;m working with Java code I have a habit of opening up a web browser and going to <a href="http://java.sun.com">http://java.sun.com</a> immediately. From there I select the Java API Reference and away I go writing Java code. I did the same thing today and was a bit shocked that the Oracle brand has completely infiltrated the Java site. I knew Oracle had acquired Sun, but it wasn&#8217;t until today that I really looked at that reality.</p>
<p>Not that it matters much, but I thought it was interesting.</p>
<p><a href="http://www.franzone.com/wp-content/uploads/2010/03/JavaAssimilation.png" rel='lytebox[javas-assimilation-into-oracle]'><img class="alignnone size-medium wp-image-1376" title="JavaAssimilation" src="http://www.franzone.com/wp-content/uploads/2010/03/JavaAssimilation-300x134.png" alt="" width="300" height="134" /></a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/UJDPT4CDIX-X2HOapSXH5CLepxg/0/da"><img src="http://feedads.g.doubleclick.net/~a/UJDPT4CDIX-X2HOapSXH5CLepxg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/UJDPT4CDIX-X2HOapSXH5CLepxg/1/da"><img src="http://feedads.g.doubleclick.net/~a/UJDPT4CDIX-X2HOapSXH5CLepxg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.franzone.com/~ff/franzone?a=PgnUEzM4_Jk:qHZIJHoY5_E:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/franzone?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=PgnUEzM4_Jk:qHZIJHoY5_E:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/franzone?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=PgnUEzM4_Jk:qHZIJHoY5_E:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/franzone?i=PgnUEzM4_Jk:qHZIJHoY5_E:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=PgnUEzM4_Jk:qHZIJHoY5_E:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/franzone?i=PgnUEzM4_Jk:qHZIJHoY5_E:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=PgnUEzM4_Jk:qHZIJHoY5_E:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/franzone?i=PgnUEzM4_Jk:qHZIJHoY5_E:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=PgnUEzM4_Jk:qHZIJHoY5_E:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/franzone?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=PgnUEzM4_Jk:qHZIJHoY5_E:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/franzone?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=PgnUEzM4_Jk:qHZIJHoY5_E:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/franzone?i=PgnUEzM4_Jk:qHZIJHoY5_E:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=PgnUEzM4_Jk:qHZIJHoY5_E:K2GI5_zWnM0"><img src="http://feeds.feedburner.com/~ff/franzone?i=PgnUEzM4_Jk:qHZIJHoY5_E:K2GI5_zWnM0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/franzone/~4/PgnUEzM4_Jk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.franzone.com/2010/03/22/javas-assimilation-into-oracle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.franzone.com/2010/03/22/javas-assimilation-into-oracle/</feedburner:origLink></item>
		<item>
		<title>Upgrade Time : WordPress 2.9 and MySQL 5</title>
		<link>http://feeds.franzone.com/~r/franzone/~3/4smoX2voInc/</link>
		<comments>http://www.franzone.com/2009/12/22/upgrade-time-wordpress-2-9-and-mysql-5/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 16:31:55 +0000</pubDate>
		<dc:creator>Jonathan Franzone</dc:creator>
				<category><![CDATA[Blog Babble]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.franzone.com/?p=1363</guid>
		<description>WordPress 2.9 was release somewhat recently and so like a good WP minion I logged into my site and clicked the update button. Error&amp;#8230; uh oh. Apparently WordPress 2.9 requires a more recent version of MySQL (&amp;#62;= 4.1.2). My host installed MySQL 5 ages ago but I&amp;#8217;ve never bothered with migrating to the new version [...]</description>
			<content:encoded><![CDATA[<p><a href="http://wordpress.org/">WordPress</a> 2.9 was release somewhat recently and so like a good WP minion I logged into my site and clicked the update button. Error&#8230; uh oh. Apparently WordPress 2.9 requires a more recent version of MySQL (&gt;= 4.1.2). My host installed MySQL 5 ages ago but I&#8217;ve never bothered with migrating to the new version because I didn&#8217;t have a reason to. Now I do. So here&#8217;s how my upgrade went.</p>
<p>First I made a full backup of both the web content and the MySQL database. The MySQL database backup was just a <code>mysqldump</code> command like so:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">mysqldump -h [HOST] \
          -u [USER] \
          -p[PASSWORD] \
          [DATABASE NAME] &gt; franzone_com_backup.sql</pre></div></div>

<p>I then restored the SQL backup  to my new MySQL 5 database like so:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">mysql -h [HOST] \
      -u [USER] \
      -p[PASSWORD] \
      [DATABASE NAME] &lt; franzone_com_backup.sql</pre></div></div>

<p>Amazingly I did not have any errors&#8230; I guess it is a good day! Next I changed my WordPress config to point to the new database by modifying <code>&lt;WEB HOME&gt;/wp-config.php</code> and setting the appropriate new values in:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Put the appropriate values for your environment</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_NAME'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'DATABASE_NAME'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_USER'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'USERNAME'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_PASSWORD'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'PASSWORD'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_HOST'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'HOST'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>I pulled up <a href="http://www.franzone.com">http://www.franzone.com</a> and all looked fine (other than the fact that my blog design is in serious need of updating). I then logged into my WordPress administration site and flushed the cache from WP-Super-Cache and went back to the home page. Everything still looks fine. Now I updated my backup scripts with the new database information and performed yet another backup.</p>
<p>Ok, final step is to upgrade WordPress. I can login to the WordPress administration and have the software do this for me automagically. Everything went smoothly. One last backup and I&#8217;m done.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/k26m5j9vc7So4v0ppePMAUeVDNk/0/da"><img src="http://feedads.g.doubleclick.net/~a/k26m5j9vc7So4v0ppePMAUeVDNk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/k26m5j9vc7So4v0ppePMAUeVDNk/1/da"><img src="http://feedads.g.doubleclick.net/~a/k26m5j9vc7So4v0ppePMAUeVDNk/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.franzone.com/~ff/franzone?a=4smoX2voInc:S_lbkmJtcbA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/franzone?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=4smoX2voInc:S_lbkmJtcbA:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/franzone?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=4smoX2voInc:S_lbkmJtcbA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/franzone?i=4smoX2voInc:S_lbkmJtcbA:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=4smoX2voInc:S_lbkmJtcbA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/franzone?i=4smoX2voInc:S_lbkmJtcbA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=4smoX2voInc:S_lbkmJtcbA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/franzone?i=4smoX2voInc:S_lbkmJtcbA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=4smoX2voInc:S_lbkmJtcbA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/franzone?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=4smoX2voInc:S_lbkmJtcbA:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/franzone?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=4smoX2voInc:S_lbkmJtcbA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/franzone?i=4smoX2voInc:S_lbkmJtcbA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=4smoX2voInc:S_lbkmJtcbA:K2GI5_zWnM0"><img src="http://feeds.feedburner.com/~ff/franzone?i=4smoX2voInc:S_lbkmJtcbA:K2GI5_zWnM0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/franzone/~4/4smoX2voInc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.franzone.com/2009/12/22/upgrade-time-wordpress-2-9-and-mysql-5/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.franzone.com/2009/12/22/upgrade-time-wordpress-2-9-and-mysql-5/</feedburner:origLink></item>
		<item>
		<title>Geek Gift Ideas – November 30</title>
		<link>http://feeds.franzone.com/~r/franzone/~3/HzbCDeLEYkM/</link>
		<comments>http://www.franzone.com/2009/11/30/geek-gift-ideas-november-30/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 10:00:54 +0000</pubDate>
		<dc:creator>Jonathan Franzone</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Gadgets & Toys]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Gifts]]></category>

		<guid isPermaLink="false">http://www.franzone.com/?p=1352</guid>
		<description>Some people have said that, &amp;#8220;laughter is the best medicine.&amp;#8221; Well, today&amp;#8217;s geek gift idea is the gift of laughter; the kind that appeals to geeks in particular. xkcd is described as a webcomic of romance, sarcasm, math and language. This book, xkcd: volume 0, is the first book that combines selections of the first [...]</description>
			<content:encoded><![CDATA[<p><a href="http://store.xkcd.com/xkcd/#xkcdvolume0"><img class="alignleft size-full wp-image-1353" title="xkcd_book_300" src="http://www.franzone.com/wp-content/uploads/2009/11/xkcd_book_300.png" alt="xkcd_book_300" width="300" height="300" align="left" /></a>Some people have said that, <em>&#8220;laughter is the best medicine.&#8221;</em> Well, today&#8217;s geek gift idea is the gift of laughter; the kind that appeals to geeks in particular. <a href="http://xkcd.com/">xkcd</a> is described as <em>a webcomic of romance, sarcasm, math and language</em>. This book, <a href="http://store.xkcd.com/xkcd/#xkcdvolume0">xkcd: volume 0</a>, is the first book that combines selections of the first 600 comics, including various author and fan favorites.</p>
<p>The cost is US $18.00 and is printed by <a href="http://breadpig.com/">BreadPig</a>. Another thing that makes this a really neat gift idea is that BreadPig&#8217;s portion of the profits will go to build a school in Laos through the charity <a href="http://www.roomtoread.org/Page.aspx?pid=183">Room to Read</a>.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/5EgmCdb7ldU-w2KeQB6m43qSprg/0/da"><img src="http://feedads.g.doubleclick.net/~a/5EgmCdb7ldU-w2KeQB6m43qSprg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/5EgmCdb7ldU-w2KeQB6m43qSprg/1/da"><img src="http://feedads.g.doubleclick.net/~a/5EgmCdb7ldU-w2KeQB6m43qSprg/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.franzone.com/~ff/franzone?a=HzbCDeLEYkM:0UeEX6BRQ-k:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/franzone?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HzbCDeLEYkM:0UeEX6BRQ-k:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/franzone?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HzbCDeLEYkM:0UeEX6BRQ-k:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/franzone?i=HzbCDeLEYkM:0UeEX6BRQ-k:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HzbCDeLEYkM:0UeEX6BRQ-k:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/franzone?i=HzbCDeLEYkM:0UeEX6BRQ-k:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HzbCDeLEYkM:0UeEX6BRQ-k:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/franzone?i=HzbCDeLEYkM:0UeEX6BRQ-k:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HzbCDeLEYkM:0UeEX6BRQ-k:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/franzone?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HzbCDeLEYkM:0UeEX6BRQ-k:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/franzone?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HzbCDeLEYkM:0UeEX6BRQ-k:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/franzone?i=HzbCDeLEYkM:0UeEX6BRQ-k:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HzbCDeLEYkM:0UeEX6BRQ-k:K2GI5_zWnM0"><img src="http://feeds.feedburner.com/~ff/franzone?i=HzbCDeLEYkM:0UeEX6BRQ-k:K2GI5_zWnM0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/franzone/~4/HzbCDeLEYkM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.franzone.com/2009/11/30/geek-gift-ideas-november-30/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.franzone.com/2009/11/30/geek-gift-ideas-november-30/</feedburner:origLink></item>
		<item>
		<title>Geek Gift Ideas – November 27</title>
		<link>http://feeds.franzone.com/~r/franzone/~3/CdeLxPA8YEU/</link>
		<comments>http://www.franzone.com/2009/11/27/geek-gift-ideas-november-27/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 16:01:04 +0000</pubDate>
		<dc:creator>Jonathan Franzone</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Gadgets & Toys]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Gifts]]></category>

		<guid isPermaLink="false">http://www.franzone.com/?p=1341</guid>
		<description>Why not start off the Geek Gift Ideas 2009 edition with a Despair, Inc. 2010 Custom Calendar. Every geek loves geek humor and Despair Inc. has been dishing out the sarcasm for years now. Not only does this calendar provide a hilarious demotivator for each month, but it also contains important dates in geek history. [...]</description>
			<content:encoded><![CDATA[<p><a href="http://www.jdoqocy.com/mr72uoxuowBFDJKFECBDCFHIFED?url=http%3A%2F%2Fwww.thinkgeek.com%2Fhomeoffice%2Fposters%2Fcbfb%2F%3Fref%3Dc"><img class="alignleft size-full wp-image-1343" title="cbfb_2010_custom_despair_calendar" src="http://www.franzone.com/wp-content/uploads/2009/11/cbfb_2010_custom_despair_calendar.jpg" alt="cbfb_2010_custom_despair_calendar" width="220" height="223" align="left" hspace="10" vspace="10" /></a></p>
<p>Why not start off the Geek Gift Ideas 2009 edition with a <a href="http://www.jdoqocy.com/mr72uoxuowBFDJKFECBDCFHIFED?url=http%3A%2F%2Fwww.thinkgeek.com%2Fhomeoffice%2Fposters%2Fcbfb%2F%3Fref%3Dc" target="_top">Despair, Inc. 2010 Custom Calendar</a><img src="http://www.ftjcfx.com/7e102r6Az42OSQWXSRPOQPSUVSRQ" border="0" alt="" width="1" height="1" />. Every geek loves geek humor and Despair Inc. has been dishing out the sarcasm for years now. Not only does this calendar provide a hilarious demotivator for each month, but it also contains important dates in geek history. For example:</p>
<ul>
<li><strong>January 9, 2007</strong>: Apple CEO Steve Jobs announces the iPhone. Motorola cringes.</li>
<li><strong>February 26, 1955</strong>: George Smith makes aviation history by becoming the first man to bail out of a jet at supersonic speeds</li>
<li><strong>March 18, 1947</strong>: Patent #2417786 was issued to Hurley Smith for the &#8220;Pocket Shield Or Protector&#8221;. The nerd is born.</li>
<li><strong>April 28, 1997</strong>: Duke Nukem Forever&#8217; announced. 12 years later, it remains unreleased.</li>
</ul>
<p>The calendar costs US $15.99 and will earn you 225 geek points.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/K3WdXwWNUVXNicv05MtmOXdX4VQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/K3WdXwWNUVXNicv05MtmOXdX4VQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/K3WdXwWNUVXNicv05MtmOXdX4VQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/K3WdXwWNUVXNicv05MtmOXdX4VQ/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.franzone.com/~ff/franzone?a=CdeLxPA8YEU:LVmyC83J0dY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/franzone?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=CdeLxPA8YEU:LVmyC83J0dY:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/franzone?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=CdeLxPA8YEU:LVmyC83J0dY:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/franzone?i=CdeLxPA8YEU:LVmyC83J0dY:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=CdeLxPA8YEU:LVmyC83J0dY:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/franzone?i=CdeLxPA8YEU:LVmyC83J0dY:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=CdeLxPA8YEU:LVmyC83J0dY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/franzone?i=CdeLxPA8YEU:LVmyC83J0dY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=CdeLxPA8YEU:LVmyC83J0dY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/franzone?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=CdeLxPA8YEU:LVmyC83J0dY:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/franzone?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=CdeLxPA8YEU:LVmyC83J0dY:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/franzone?i=CdeLxPA8YEU:LVmyC83J0dY:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=CdeLxPA8YEU:LVmyC83J0dY:K2GI5_zWnM0"><img src="http://feeds.feedburner.com/~ff/franzone?i=CdeLxPA8YEU:LVmyC83J0dY:K2GI5_zWnM0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/franzone/~4/CdeLxPA8YEU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.franzone.com/2009/11/27/geek-gift-ideas-november-27/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.franzone.com/2009/11/27/geek-gift-ideas-november-27/</feedburner:origLink></item>
		<item>
		<title>Friday Song Of The Day – Happy Christmas (War Is Over)</title>
		<link>http://feeds.franzone.com/~r/franzone/~3/P0eptDEM09A/</link>
		<comments>http://www.franzone.com/2009/11/27/friday-song-of-the-day-happy-christmas-war-is-over/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 15:42:36 +0000</pubDate>
		<dc:creator>Jonathan Franzone</dc:creator>
				<category><![CDATA[Music]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Friday Song Of The Day]]></category>

		<guid isPermaLink="false">http://www.franzone.com/?p=1331</guid>
		<description>It has been since March that I posted a Friday Song Of The Day, so I figured I&amp;#8217;d kick off this Christmas season with a Christmas tune. John Lennon&amp;#8217;s Happy Xmas (War Is Over) seemed apropos to both the season of the year and our country. Happy Christmas Kyoko Happy Christmas Julian So this is [...]</description>
			<content:encoded><![CDATA[<p>It has been since March that I posted a <a href="http://www.franzone.com/tag/friday-song-of-the-day/">Friday Song Of The Day</a>, so I figured I&#8217;d kick off this Christmas season with a Christmas tune. John Lennon&#8217;s <a href="http://www.amazon.com/gp/product/B000WWB1HM?ie=UTF8&#038;tag=franzone-20&#038;linkCode=as2&#038;camp=1789&#038;creative=390957&#038;creativeASIN=B000WWB1HM">Happy Xmas (War Is Over)</a><img src="http://www.assoc-amazon.com/e/ir?t=franzone-20&#038;l=as2&#038;o=1&#038;a=B000WWB1HM" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> seemed apropos to both the season of the year and our country.</p>
<blockquote><p>
Happy Christmas Kyoko<br />
Happy Christmas Julian</p>
<p>So this is Christmas<br />
And what have you done<br />
Another year over<br />
And a new one just begun<br />
And so this is Christmas<br />
I hope you have fun<br />
The near and the dear ones<br />
The old and the young</p>
<p>A very merry Christmas<br />
And a happy New Year<br />
Let&#8217;s hope it&#8217;s a good one<br />
Without any fear</p>
<p>And so this is Christmas (War is over)<br />
For weak and for strong (If you want it)<br />
For rich and the poor ones (War is over)<br />
The road is so long (Now)<br />
And so Happy Christmas (War is over)<br />
For black and for white (If you want it)<br />
For yellow and red ones (War is over)<br />
Let&#8217;s stop all the fight (Now)</p>
<p>A very merry Christmas<br />
And a happy New Year<br />
Let&#8217;s hope it&#8217;s a good one<br />
Without any fear</p>
<p>So this is Christmas (War is over)<br />
And what have we done (If you want it)<br />
Another year over (War is over)<br />
And a new one just begun (Now)<br />
And so Happy Christmas (War is over)<br />
We hope you have fun (If you want it)<br />
The near and the dear one (War is over)<br />
The old and the young (Now)</p>
<p>A very merry Christmas<br />
And a happy New Year<br />
Let&#8217;s hope it&#8217;s a good one<br />
Without any fear</p>
<p>War is over if you want it<br />
War is over now</p></blockquote>
<p>Here is a YouTube video with the music and some pictures.</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/WUCbZhIfQbA&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/WUCbZhIfQbA&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><em>* Click through to the site if you cannot see the video above.</em></p>

<p><a href="http://feedads.g.doubleclick.net/~a/YnYDnhfrEYEQGLttVLthnFndMks/0/da"><img src="http://feedads.g.doubleclick.net/~a/YnYDnhfrEYEQGLttVLthnFndMks/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/YnYDnhfrEYEQGLttVLthnFndMks/1/da"><img src="http://feedads.g.doubleclick.net/~a/YnYDnhfrEYEQGLttVLthnFndMks/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.franzone.com/~ff/franzone?a=P0eptDEM09A:phvGZAaR4Ig:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/franzone?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=P0eptDEM09A:phvGZAaR4Ig:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/franzone?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=P0eptDEM09A:phvGZAaR4Ig:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/franzone?i=P0eptDEM09A:phvGZAaR4Ig:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=P0eptDEM09A:phvGZAaR4Ig:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/franzone?i=P0eptDEM09A:phvGZAaR4Ig:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=P0eptDEM09A:phvGZAaR4Ig:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/franzone?i=P0eptDEM09A:phvGZAaR4Ig:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=P0eptDEM09A:phvGZAaR4Ig:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/franzone?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=P0eptDEM09A:phvGZAaR4Ig:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/franzone?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=P0eptDEM09A:phvGZAaR4Ig:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/franzone?i=P0eptDEM09A:phvGZAaR4Ig:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=P0eptDEM09A:phvGZAaR4Ig:K2GI5_zWnM0"><img src="http://feeds.feedburner.com/~ff/franzone?i=P0eptDEM09A:phvGZAaR4Ig:K2GI5_zWnM0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/franzone/~4/P0eptDEM09A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.franzone.com/2009/11/27/friday-song-of-the-day-happy-christmas-war-is-over/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.franzone.com/2009/11/27/friday-song-of-the-day-happy-christmas-war-is-over/</feedburner:origLink></item>
		<item>
		<title>Remember The Beatles? 1000 Years Later</title>
		<link>http://feeds.franzone.com/~r/franzone/~3/HYpXN9wkPT8/</link>
		<comments>http://www.franzone.com/2009/11/26/remember-the-beatles-1000-years-later/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 17:46:51 +0000</pubDate>
		<dc:creator>Jonathan Franzone</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Music]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[Thanksgiving]]></category>
		<category><![CDATA[The Beatles]]></category>

		<guid isPermaLink="false">http://www.franzone.com/?p=1327</guid>
		<description>This is a hilarious video about what the world will view as The Beatles in another thousand years. I really enjoyed the musical reconstruction midway complete with a theremin. Oh, and by the way&amp;#8230; Happy Thanksgiving!</description>
			<content:encoded><![CDATA[<p>This is a hilarious video about what the world will view as <a href="http://www.thebeatles.com/">The Beatles</a> in another thousand years. I really enjoyed the musical reconstruction midway complete with a <a href="http://en.wikipedia.org/wiki/Theremin">theremin</a>.</p>
<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/3Z2vU8M6CYI&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/3Z2vU8M6CYI&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
<p>Oh, and by the way&#8230; Happy Thanksgiving!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/jictssPebdX8VKFxlu9zJHHA7dY/0/da"><img src="http://feedads.g.doubleclick.net/~a/jictssPebdX8VKFxlu9zJHHA7dY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/jictssPebdX8VKFxlu9zJHHA7dY/1/da"><img src="http://feedads.g.doubleclick.net/~a/jictssPebdX8VKFxlu9zJHHA7dY/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.franzone.com/~ff/franzone?a=HYpXN9wkPT8:C8ryWr8TKfk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/franzone?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HYpXN9wkPT8:C8ryWr8TKfk:dnMXMwOfBR0"><img src="http://feeds.feedburner.com/~ff/franzone?d=dnMXMwOfBR0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HYpXN9wkPT8:C8ryWr8TKfk:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/franzone?i=HYpXN9wkPT8:C8ryWr8TKfk:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HYpXN9wkPT8:C8ryWr8TKfk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/franzone?i=HYpXN9wkPT8:C8ryWr8TKfk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HYpXN9wkPT8:C8ryWr8TKfk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/franzone?i=HYpXN9wkPT8:C8ryWr8TKfk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HYpXN9wkPT8:C8ryWr8TKfk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/franzone?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HYpXN9wkPT8:C8ryWr8TKfk:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/franzone?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HYpXN9wkPT8:C8ryWr8TKfk:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/franzone?i=HYpXN9wkPT8:C8ryWr8TKfk:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.franzone.com/~ff/franzone?a=HYpXN9wkPT8:C8ryWr8TKfk:K2GI5_zWnM0"><img src="http://feeds.feedburner.com/~ff/franzone?i=HYpXN9wkPT8:C8ryWr8TKfk:K2GI5_zWnM0" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/franzone/~4/HYpXN9wkPT8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.franzone.com/2009/11/26/remember-the-beatles-1000-years-later/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.franzone.com/2009/11/26/remember-the-beatles-1000-years-later/</feedburner:origLink></item>
	</channel>
</rss>
