I'd really get into MySQL if I were you, software that doesn't have a database really isn't worth getting published.
But, if you want, you may create a text file database parser:
You'll use pipestems "|" to delimit the fields and you'll store each row on a single line.
so to create a row:
function makeTableRow($dataArray,$tableFile) {
$row = implode('|',$dataArray) . "\n";
$file = fopen($tableFile,'w');
fwrite($file,$dat);
fclose($file);
}
and to break up the file...
function dumpTable($tableFile) {
$dump = file ($tableFile);
foreach ($dump as $key=>$val) {
$set[$key] = preg_split('/|/',$val);
}
return $set;
}
That's the basics at it's most unrefined, interesting concept in redundancy, but that's about it as it would be kind of cool to do queries against a file with a regex for other application like spidering a page or something... you could traverse a directory and then find all pages that contained a query result... but fior your app, you are much better off with MySQL.