downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

dbase_replace_record> <dbase_open
[edit] Last updated: Fri, 24 May 2013

view this page in

dbase_pack

(PHP 4, PHP 5)

dbase_packデータベースを圧縮する

説明

bool dbase_pack ( int $dbase_identifier )

dbase_delete_record() を使用して削除マークがつけられた レコードを完全に削除することで、指定したデータベースを圧縮します。

パラメータ

dbase_identifier

データベースのリンク ID 。 dbase_open() あるいは dbase_create() によって返されます。

返り値

成功した場合に TRUE を、失敗した場合に FALSE を返します。

例1 dBase データベースを空にする

<?php

// read-write モードでオープンする
$db dbase_open('/tmp/test.dbf'2);

if (
$db) {
  
$record_numbers dbase_numrecords($db);
  for (
$i 1$i <= $record_numbers$i++) {
      
dbase_delete_record($db$i);
  }
  
// データベースを消す
  
dbase_pack($db);
}

?>

参考



add a note add a note User Contributed Notes dbase_pack - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites