<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A Path Less Taken &#187; database</title>
	<atom:link href="http://www.legendrefamily.org/blog/tag/database/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.legendrefamily.org/blog</link>
	<description>Breaking with convention in a very conventional fashion.</description>
	<lastBuildDate>Tue, 11 Oct 2011 03:19:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP Text Databases</title>
		<link>http://www.legendrefamily.org/blog/2009/10/php-text-databases/</link>
		<comments>http://www.legendrefamily.org/blog/2009/10/php-text-databases/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 03:46:28 +0000</pubDate>
		<dc:creator>JJ</dc:creator>
				<category><![CDATA[PHP Development]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://www.legendrefamily.org/blog/?p=624</guid>
		<description><![CDATA[I&#8217;m a quiet advocate that Relational Database Management Systems (RDBMS) are overkill for some applications. A great example of this is small, web based utility programs that we write for ourselves and for others. Assume you need a small single user program with a limited amount of data. You can use a web server like [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>I&#8217;m a quiet advocate that Relational Database Management Systems (RDBMS) are overkill for some applications.  A great example of this is small, web based utility programs that we write for ourselves and for others.  Assume you need a small single user program with a limited amount of data.  You can use a web server like lighttpd and a script engine like PHP to create a highly portable solution that will cross multiple OS&#8217;s.  This is far from the only approach, nor is it necessarily the best, but it is viable, particularly for a developer whose core strength is in web based development and UI design.</p>
<p><span id="more-624"></span></p>
<p>The problem is you have to write your own data handling classes complete with IO.  Enter a small collection of text based database scripts written in PHP.  Their intent is to provide basic tools to treat one or more text files as if they were a RDBMS.  They don&#8217;t support the full SQL standard, nor do they provide ACID transactions, but for a small one off job they might just be the trick you are looking for. Here is a short list of some I noted on the web.</p>
<ul>
<li><a href="http://www.c-worker.ch/txtdbapi/index_eng.php">PHP Text DB API</a> &#8211; A mature implementation of a text based database in PHP.  The English manual can be found <a href="http://www.c-worker.ch/txtdbapi/manual_html_eng/">here</a>.</li>
<li><a href="http://www.myupb.com/wiki/index.php/TextDB">TextDB</a> &#8211; Also a mature solution.  Built by the <a href="http://www.myupb.com/news/">UPD</a> team as the DBMS for their application.  The Ultimate PHP Board (UPD) is a free flat file bulletin board powered by TextDB.</li>
<li><a href="http://www.fam.tuwien.ac.at/~schamane/sysadmin/mups/">mUps</a> &#8211; A mUlti-Purpose text database system developed by Andreas Schamanek.  It appears to be in an Alpha stage of development per the web site.</li>
<li><a href="http://txtsql.com/index.php">txtSQL</a> &#8211; A text based database developed by Faraz Ali and based on a Perl script of the same name.  There are a number of posts in the forum from 2007 indicating that version 4 was in development, but the project appears to be dead or suspended.  I sent a note to the author to confirm and I&#8217;ll update this post if I hear back from him.</li>
</ul>
<p>If any of my readers (yes, all 3 of you) is aware of other text based databases that are worth noting please post a comment here as I&#8217;d love to check them out.  I should point out that I have not used any of these products.  If you have used one please post a comment and let me know what you thought of it.</p>
<p>Peace</p>
<div class="shr-publisher-624"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.legendrefamily.org%2Fblog%2F2009%2F10%2Fphp-text-databases%2F' data-shr_title='PHP+Text+Databases'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fwww.legendrefamily.org%2Fblog%2F2009%2F10%2Fphp-text-databases%2F' data-shr_title='PHP+Text+Databases'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.legendrefamily.org/blog/2009/10/php-text-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

