php-src/ext/dba/tests/test.inc

18 lines
453 B
PHP
Raw Normal View History

2002-10-25 09:42:29 +00:00
<?php
$db_filename = $db_file = dirname(__FILE__).'/test0.dbm';
2002-10-25 09:42:29 +00:00
$handler = dba_handlers();
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];
}
$lock_flag = 'l';
@unlink($db_filename);
@unlink($db_filename.'.lck');
2002-10-25 09:42:29 +00:00
?>