コード例 #1
0
function dbase_get_header_info($dbase_identifier)
{
    return xbase_get_header_info($dbase_identifier);
}
コード例 #2
0
ファイル: test_api.php プロジェクト: abbeet/server39
$xi = xbase_open("test/xbase.dbf", 2);
dbase_delete_record($di, 2);
xbase_delete_record($xi, 2);
dbase_pack($di);
xbase_pack($xi);
dbase_close($di);
xbase_close($xi);
$di = dbase_open("test/dbase.dbf", 2);
$xi = xbase_open("test/xbase.dbf", 2);
echo "dbase<br>";
echo "index = {$di} <br>";
echo "<br>";
echo "xbase<br>";
echo "index = {$xi} <br>";
echo "header info: ";
print_r(xbase_get_header_info($xi));
dbase_close($di);
xbase_close($xi);
echo "<br><br>";
$di = dbase_open("test/xbase.dbf", 0);
$xi = xbase_open("test/dbase.dbf", 0);
echo "dbase<br>";
echo "index = {$di} <br>";
echo "column count = " . dbase_numfields($di) . " <br>";
echo "record count = " . dbase_numrecords($di) . " <br>";
echo "<table>";
for ($i = 0; $i < dbase_numrecords($di); $i++) {
    echo "<tr>";
    $r = dbase_get_record_with_names($di, $i + 1);
    foreach ($r as $c => $v) {
        echo "<td> {$c}={$v} </td>";
コード例 #3
0
ファイル: test_api.php プロジェクト: raymerta/Monev
	dbase_pack($di);
	xbase_pack($xi);
	
	dbase_close($di);
	xbase_close($xi);
	$di = dbase_open("test/dbase.dbf",2);
	$xi = xbase_open("test/xbase.dbf",2);

	
	echo "dbase<br>";
	echo "index = $di <br>";
	
	echo "<br>";
	echo "xbase<br>";
	echo "index = $xi <br>";
	echo "header info: "; print_r(xbase_get_header_info($xi));
	
	dbase_close($di);
	xbase_close($xi);
	
	echo "<br><br>";
	
	$di = dbase_open("test/xbase.dbf",0);
	$xi = xbase_open("test/dbase.dbf",0);

	echo "dbase<br>";
	echo "index = $di <br>";
	echo "column count = ".dbase_numfields($di)." <br>";
	echo "record count = ".dbase_numrecords($di)." <br>";
    echo "<table>";
    for ($i=0;$i<dbase_numrecords($di);$i++) { echo "<tr>"; $r = dbase_get_record_with_names($di,$i+1); foreach ($r as $c=>$v) { echo "<td> $c=$v </td>"; } echo "</tr>"; }