ref dbm


DBM Functions [deprecated]Podręcznik PHPPoprzedniNastępnyXX. DBM Functions [deprecated]Wprowadzenie These functions allow you to store records stored in a dbm-style database. This type of database (supported by the Berkeley DB, GDBM, and some system libraries, as well as a built-in flatfile library) stores key/value pairs (as opposed to the full-blown records supported by relational databases). Notatka: However, dbm support is deprecated and you are encourged to use the Database (dbm-style) abstraction layer functions instead. Wymagania To use this functions you have to compile PHP with support for an underlying database. See the list of supported Databases. Instalacja In order to use these functions, you must compile PHP with dbm support by using the --with-db option. In addition you must ensure support for an underlying database or you can use some sytem libraries. Konfiguracja startowaTo rozszerzenie nie definiuje żadnych dyrektyw konfiguracyjnych.Typy zasobów The function dbmopen() returns an database identifier which is used by the other dbm-functions. Predefiniowane stałeTo rozszerzenie nie definiuje żadnych stałych.Przykłady Przykład 1. DBM example$dbm = dbmopen ("lastseen", "w"); if (dbmexists ($dbm, $userid)) { $last_seen = dbmfetch ($dbm, $userid); } else { dbminsert ($dbm, $userid, time()); } do_stuff(); dbmreplace ($dbm, $userid, time()); dbmclose ($dbm); Spis treścidblist --  Describes the DBM-compatible library being used dbmclose -- Closes a dbm databasedbmdelete --  Deletes the value for a key from a DBM database dbmexists --  Tells if a value exists for a key in a DBM database dbmfetch --  Fetches a value for a key from a DBM database dbmfirstkey --  Retrieves the first key from a DBM database dbminsert --  Inserts a value for a key in a DBM database dbmnextkey --  Retrieves the next key from a DBM databasedbmopen -- Opens a DBM databasedbmreplace --  Replaces the value for a key in a DBM database PoprzedniSpis treściNastępnydbase_replace_recordPoczątek rozdziałudblist

Wyszukiwarka

Podobne podstrony:
ref dbm
ref dbm
ref oracle
ref math
ref misc
ref xml
ref sybase
percepcja ref
ref dbx
ref ingres
ref overload
ref xmlrpc
ref exec
ref aspell
ref oracle
Ref B2 Fechner
ref mssql
ref
ref dbx

więcej podobnych podstron