2002-10-25 09:42:29 +00:00
|
|
|
<?php
|
2002-11-06 11:18:00 +00:00
|
|
|
$db_filename = $db_file = dirname(__FILE__).'/test0.dbm';
|
2002-10-25 09:42:29 +00:00
|
|
|
$handler = dba_handlers();
|
2002-11-15 16:11:51 +00:00
|
|
|
if (in_array('flatfile', $handler)) {
|
|
|
|
$handler = 'flatfile';
|
|
|
|
} elseif ($handler[0]=='cdb') { // CDB currently supports only reading
|
2002-11-03 15:22:32 +00:00
|
|
|
if (count($handler)==1) {
|
|
|
|
die('CDB currently supports only reading ');
|
|
|
|
}
|
|
|
|
$handler = $handler[1];
|
|
|
|
} else {
|
|
|
|
$handler = $handler[0];
|
|
|
|
}
|
2002-11-10 22:56:29 +00:00
|
|
|
$lock_flag = 'l';
|
2002-11-11 12:00:58 +00:00
|
|
|
@unlink($db_filename);
|
|
|
|
@unlink($db_filename.'.lck');
|
2002-10-25 09:42:29 +00:00
|
|
|
?>
|