📄 function.php-dbmopen.htm
字号:
<html>
<head>
<meta content="text/html; charset=gb2312" http-equiv=Content-Type>
<title>函数:dbmopen()</title>
<style type="text/css">
a {text-decoration: none;color:#6666ff;}
a:hover {color:#ff0000;}
</style>
</head>
<body bgcolor=ffffff leftmargin=0 topmargin=0 marginheight=0 marginwidth=0>
<p>
<div align=center><table border=0 width=70%><tr>
<td valign=middle width=20><hr size=1 width=100%></td>
<td valign=middle nowrap><font color=e06060 size=+2><b>函数:dbmopen()</b></font></td>
<td valign=middle width=100%><hr size=1 width=100%></td>
</tr></table></div><p>
<div align=center><table border=0 width=70%><tr><td>
<div align=right><a href="group.php-11.htm" alt="group.php?11">dbm 类数据库函数库</a></div><br><h1><font color=0000bb>dbmopen</font></h1><p>
打开 DBM 数据库链接。<p>
<font color=ff8000>语法:</font> <b>int dbmopen(string filename, string flags);</b><p>
<font color=ff8000>返回值:</font> 整数<p>
<font color=ff8000>函数种类:</font> 数据库功能<p>
<p><table border=0 cellspacing=0 cellpadding=0 width=100% height=1><tr><td height=1 bgcolor=c0c0c0><table border=0 cellspacing=0 cellpadding=0><tr><td></td></tr></table></td></tr>
<tr><td align=left><font color=ff8000>内容说明</font></td></tr></table><p>本函数用来打开指定的数据库。参数 path 为数据库的路径加上数据库名称。参数 mode 值如下表<p>
<table border=1>
<tr><th>属性</th><th>说明</th></tr>
<tr><td>r</td><td>打开只读既有数据库</td></tr>
<tr><td>w</td><td>打开可读写既有数据库</td></tr>
<tr><td>c</td><td>打开可读写数据库,若不存在则建立</td></tr>
<tr><td>n</td><td>删去现有数据库,若不存在则建立,之后可读写</td></tr>
</table><p>
返回值为数据库的代号 ID,若失败则返回 false。
<p>
<p><hr size=1><br>如果你对此手册有任何问题,请到下面网址提问: <a href="www.web745.com">WEB开发知识库</a> (<a href="http://www.web745.com">www.web745.com</a>)<p>
</td></tr></table></div>
<p>
<div align=center>
<table border=0>
<tr>
<td>[ <a href="function.php-dbase_numrecords.htm" alt="function.php?dbase_numrecords">上一页</a>
</td>
<td> <a href="function.php-dbmclose.htm" alt="function.php?dbmclose">下一页</a>
]</td>
</tr>
</table>
</div><p><br><br>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -