PHP: dbase_pack - Manual in Deutsh
PHP: dbase_pack - Manual in French
PHP: dbase_pack - Manual in Polish

You Are At PHP: dbase_pack - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

dbase_pack

(PHP 3, PHP 4, PHP 5)

dbase_pack -- Packs a database

Description

bool dbase_pack ( int dbase_identifier )

Packs the specified database by permanently deleting all records marked for deletion using dbase_delete_record().

Parameters

dbase_identifier

The database link identifier, returned by dbase_open() or dbase_create().

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()

Internet
Szkolenia to norma dla każdego. Norma dla każdego.
zegarki szwajcarskie
Skuteczne pozycjonowanie stron katowice i cała Polska.
Pomoc drogowa 24h

Another Useful functions:


ref.dbase | function.dbase-replace-record | function.dbase-pack | function.dbase-open | function.dbase-numrecords | function.dbase-numfields | function.dbase-get-record | function.dbase-get-record-with-names | function.dbase-get-header-info | function.dbase-delete-record | function.dbase-create | function.dbase-close | function.dbase-add-record |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.