Web студия "GrandView"
  Главная   Написать Контакты
   
   
О проекте
Руководство php
 

dbminsert

(PHP 3, PHP 4, PECL)

dbminsert -- Inserts a value for a key in a DBM database

Описание

int dbminsert ( resource dbm_identifier, string key, string value )

Adds the value to the database with the specified key.

Список параметров

dbm_identifier

The DBM link identifier, returned by dbmopen().

key

The added key

value

The added key value

Возвращаемые значения

Returns -1 if the database was opened read-only, 0 if the insert was successful, and 1 if the specified key already exists. (To replace the value, use dbmreplace().)

Смотрите также

dbmreplace()
dbmdelete()



add a note add a note User Contributed Notes
dbminsert
schoch4 at starnet dot com
18-Oct-2000 05:20
In PHP 3, the key is passed as a C string with its length set to its strlen.  This can be a problem if you want to use the DBM file as an AuthDBMUserFile for apache with NETSCAPE_DBM_COMPAT defined.  In that case, apache needs a trailing NULL on the key, which this function can't do.

dbmnextkey> <dbmfirstkey
Last updated: Fri, 26 Jan 2007
 
 
Новости
11 июля 2007
Сайт запущен
© 2007 info@grandviewstudio.com

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330
Z058440144362 Z348613067571