Query: dbase_pack
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DBASE_PACK(3) 1 DBASE_PACK(3) dbase_pack - Packs a databaseSYNOPSISbool dbase_pack (int $dbase_identifier)DESCRIPTIONPacks the specified database by permanently deleting all records marked for deletion using dbase_delete_record(3).PARAMETERSo $dbase_identifier - The database link identifier, returned by dbase_open(3) or dbase_create(3).RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #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 ALSOdbase_delete_record(3). PHP Documentation Group DBASE_PACK(3)
| Related Man Pages |
|---|
| dbase_create(3) - php |
| fbsql_database_password(3) - php |
| dbase_open(3) - php |
| fbsql_create_db(3) - php |
| fbsql_db_status(3) - php |
| Similar Topics in the Unix Linux Community |
|---|
| Forum Video Tutorial: How to Use Code Tags |
| UNIX.COM 2017 Year End Summary |
| New Code Tags (Syntax Highlighting) |
| Please Welcome Ravinder Singh to the Moderation Team |