dbase_pack(3) php man page | unix.com

Man Page: dbase_pack

Operating Environment: php

Section: 3

DBASE_PACK(3)								 1							     DBASE_PACK(3)

dbase_pack - Packs a database

SYNOPSIS
bool dbase_pack (int $dbase_identifier)
DESCRIPTION
Packs the specified database by permanently deleting all records marked for deletion using dbase_delete_record(3).
PARAMETERS
o $dbase_identifier - The database link identifier, returned by dbase_open(3) or dbase_create(3).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 Emptying a dBase database <?php // open in read-write mode $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); } // expunge the database dbase_pack($db); } ?>
SEE ALSO
dbase_delete_record(3). PHP Documentation Group DBASE_PACK(3)
Related Man Pages
oci_set_client_identifier(3) - php
dbase_add_record(3) - php
dbase_get_header_info(3) - php
dbase_replace_record(3) - php
ingres_commit(3) - php
Similar Topics in the Unix Linux Community
Forum Video Tutorial: How to Use Code Tags
Status of UNIX.COM Forum Transformation
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Denial Of Service Attack Update