dba.setup.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 195 行
HTML
195 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Installing/Configuring</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="intro.dba.html">Introduction</a></div> <div class="next" style="text-align: right; float: right;"><a href="dba.installation.html">Installation</a></div> <div class="up"><a href="book.dba.html">DBA</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Installing/Configuring</h1><h2>Table of Contents</h2><ul class="chunklist chunklist_chapter"><li><a href="dba.installation.html">Installation</a></li><li><a href="dba.configuration.html">Runtime Configuration</a></li><li><a href="dba.resources.html">Resource Types</a></li></ul> <div id="dba.requirements" class="section"> <h2 class="title">Requirements</h2> <p class="para"> The behaviour of various aspects depends on the implementation of the underlying database. Functions such as <a href="function.dba-optimize.html" class="function">dba_optimize()</a> and <a href="function.dba-sync.html" class="function">dba_sync()</a> will do what they promise for one database and will do nothing for others. You have to download and install supported dba-Handlers. <table border="5"> <caption><b>List of DBA handlers</b></caption> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Handler</th> <th colspan="1">Notes</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left"><i>dbm</i></td> <td colspan="1" rowspan="1" align="left"> Dbm is the oldest (original) type of Berkeley DB style databases. You should avoid it, if possible. We do not support the compatibility functions built into DB2 and gdbm, because they are only compatible on the source code level, but cannot handle the original dbm format. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left"><i>ndbm</i></td> <td colspan="1" rowspan="1" align="left"> Ndbm is a newer type and more flexible than dbm. It still has most of the arbitrary limits of dbm (therefore it is deprecated). </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left"><i>gdbm</i></td> <td colspan="1" rowspan="1" align="left"> Gdbm is the <a href="ftp://ftp.gnu.org/pub/gnu/gdbm/" class="link external">» GNU database manager</a>. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left"><i>db2</i></td> <td colspan="1" rowspan="1" align="left"> DB2 is <a href="http://www.sleepycat.com/" class="link external">» Sleepycat Software's DB2</a>. It is described as "a programmatic toolkit that provides high-performance built-in database support for both standalone and client/server applications. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left"><i>db3</i></td> <td colspan="1" rowspan="1" align="left"> DB3 is <a href="http://www.sleepycat.com/" class="link external">» Sleepycat Software's DB3</a>. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left"><i>db4</i></td> <td colspan="1" rowspan="1" align="left"> DB4 is <a href="http://www.sleepycat.com/" class="link external">» Sleepycat Software's DB4</a>. This is available since PHP 4.3.2. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left"><i>cdb</i></td> <td colspan="1" rowspan="1" align="left"> Cdb is "a fast, reliable, lightweight package for creating and reading constant databases." It is from the author of qmail and can be found at <a href="http://cr.yp.to/cdb.html" class="link external">» http://cr.yp.to/cdb.html</a>. Since it is constant, we support only reading operations. And since PHP 4.3.0 we support writing (not updating) through the internal cdb library. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left"><i>cdb_make</i></td> <td colspan="1" rowspan="1" align="left"> Since PHP 4.3.0 we support creation (not updating) of cdb files when the bundled cdb library is used. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left"><i>flatfile</i></td> <td colspan="1" rowspan="1" align="left"> This is available since PHP 4.3.0 for compatibility with the deprecated <i>dbm</i> extension only and should be avoided. However you may use this where files were created in this format. That happens when configure could not find any external library. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left"><i>inifile</i></td> <td colspan="1" rowspan="1" align="left"> This is available since PHP 4.3.3 to be able to modify php.ini files from within PHP scripts. When working with ini files you can pass arrays of the form array(0=>group,1=>value_name) or strings of the form "[group]value_name" where group is optional. As the functions <a href="function.dba-firstkey.html" class="function">dba_firstkey()</a> and <a href="function.dba-nextkey.html" class="function">dba_nextkey()</a> return string representations of the key there is a new function <a href="function.dba-key-split.html" class="function">dba_key_split()</a> available since PHP 5 which allows to convert the string keys into array keys without loosing <b><tt>FALSE</tt></b>. </td> </tr> <tr valign="middle"> <td colspan="1" rowspan="1" align="left"><i>qdbm</i></td> <td colspan="1" rowspan="1" align="left"> This is available since PHP 5.0.0. The qdbm library can be loaded from <a href="http://qdbm.sourceforge.net" class="link external">» http://qdbm.sourceforge.net</a>. </td> </tr> </tbody> </colgroup> </table> </p> <p class="para"> When invoking the <a href="function.dba-open.html" class="function">dba_open()</a> or <a href="function.dba-popen.html" class="function">dba_popen()</a> functions, one of the handler names must be supplied as an argument. The actually available list of handlers is displayed by invoking <a href="function.phpinfo.html" class="function">phpinfo()</a> or <a href="function.dba-handlers.html" class="function">dba_handlers()</a>. </p> </div> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="intro.dba.html">Introduction</a></div> <div class="next" style="text-align: right; float: right;"><a href="dba.installation.html">Installation</a></div> <div class="up"><a href="book.dba.html">DBA</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?