PHP: dbminsert - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

dbmnextkey dbmfirstkey

Last updated: Fri, 26 Jan 2007

view this page in

# 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 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.`
add a note
dbmnextkey dbmfirstkey

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 09:32:46 2007 PST