ref dbm


dbm functionsPHP ManualPrevNextXI. dbm functions 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). Example 1. dbm example 1  2 $dbm = dbmopen("lastseen", "w"); 3 if (dbmexists($dbm, $userid)) { 4  $last_seen = dbmfetch($dbm, $userid); 5 } else { 6  dbminsert($dbm, $userid, time()); 7 } 8 do_stuff(); 9 dbmreplace($dbm, $userid, time()); 10 dbmclose($dbm); 11  Table of Contentsdbmopen — opens a dbm databasedbmclose — closes a dbm databasedbmexists — tells if a value exists for a key in a dbm databasedbmfetch — fetches a value for a key from a dbm databasedbminsert — inserts a value for a key in a dbm databasedbmreplace — replaces the value for a key in a dbm databasedbmdelete — deletes the value for a key from a dbm databasedbmfirstkey — retrieves the first key from a dbm databasedbmnextkey — retrieves the next key from a dbm databasedblist — describes the dbm-compatible library being usedPrevHomeNextdbase_numrecordsUpdbmopen

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