Nauka

Krótki kurs, aby zapoznać się z podstawami języka

DBM Functions [deprecated]

XXVI. DBM Functions [deprecated]

Wstęp

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: DBM support is deprecated and you are encouraged to use the Database (dbm-style) abstraction layer functions instead.

Notatka: This extension has been removed from PHP and is no longer available as of PHP 5.0.0.

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 system libraries.

Konfiguracja uruchomieniowa

To rozszerzenie nie definiuje posiada żadnych dyrektyw konfiguracyjnych w pliku php.ini.

Typy zasobów

The function dbmopen() returns an database identifier which is used by the other dbm-functions.

Stałe predefiniowane

To rozszerzenie nie posiada żadnych stałych.

Przykłady

Przykład 1. DBM example

<?php

$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ści
dblist -- Describes the DBM-compatible library being used
dbmclose -- Closes a dbm database
dbmdelete -- 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 -- 
dbmopen -- Opens a DBM database
dbmreplace -- Replaces the value for a key in a DBM database


mario download

Posty z forum

Ostatnie wiadomości z grupy dyskusyjnej

problem z komputrem
Proponuje sciagnac u kolegi i wypalic na plycie obraz z programem antywirusowym, np. Kaspersky Rescue Disk...
Router TL-R402M-problem
Router nie powinien powodowac takich rzeczy. Jestes pewny, ze to nie wina serwerow skad pobierasz dane ? Czy jest tak w konkretnym programie, np. do...
"We pay for your Mio" - dajcie znać
Jesli ktos zaryzykował i kupił nawigacje Mio i zamiast gwarantowanych 10 Euro postanowił zagrać o 100 niech da znac jeśli wygra. Ciekawi mnie jak to...
poradzcie mezczyzni jaka nawigacje kupic:)
Ja tez nie mogę wziąc udziału bo już mam jednego takiego....:( Ale pomysł fajny. Kumpel mówił, że ta gierka jak się gra o 100 Euro jest nieźle...
problem z kamerą internetową
witam. mam ten sam problem z kamerka i sys Vista. Jezeli jest ktos zyczliwym na tym forum to prosze o przeslanie sterownikow do visty na mojego...

Mam problem. Otóż: pole na tekst to grafika. Chcę aby to jaśniejsze pole było czymś w rodzaju nie wiem... ramki, pływającej ramki. Po prostu, żebym mógł tam pisać, żeby było to tło (jaśniejsze pole), oraz aby się mogło przewijać.