Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: dbminsert - Manual
[go: Go Back, main page]

PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<dbmfirstkeydbmnextkey" width="11" height="7"/>
view the version of this page
Last updated: Sat, 06 May 2006

dbminsert

(PHP 3, PHP 4, PECL)

dbminsert -- DBM データベースへ値を挿入する

説明

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

データベースに、指定したキー(key)に対応する値を追加します。

データベースがリードオンリーでオープンされていた場合は -1 を返し、 挿入が成功すれば 0 を返します。指定されたキーが存在する場合は 1 を 返します(値を置き換えるには dbmreplace() を 使ってください)。



add a note add a note User Contributed Notes
dbminsert
schoch4 at starnet dot com
19-Oct-2000 09: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.

<dbmfirstkeydbmnextkey" width="11" height="7"/>
 Last updated: Sat, 06 May 2006
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2006 The PHP Group
All rights reserved.
This mirror generously provided by: PacketBusiness, Inc.
Last updated: Wed Sep 6 09:26:40 2006 JST