PageRenderTime 40ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/php/dba.requirements.html

https://bitbucket.org/thncr/manuals
HTML | 167 lines | 139 code | 28 blank | 0 comment | 0 complexity | 5ac58fd2fc3c111971562f1d943dd807 MD5 | raw file
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <title>需求</title>
  6. </head>
  7. <body><div class="manualnavbar" style="text-align: center;">
  8. <div class="prev" style="text-align: left; float: left;"><a href="dba.setup.html">安装配置</a></div>
  9. <div class="next" style="text-align: right; float: right;"><a href="dba.installation.html">安装</a></div>
  10. <div class="up"><a href="dba.setup.html">安装配置</a></div>
  11. <div class="home"><a href="index.html">PHP Manual</a></div>
  12. </div><hr /><div id="dba.requirements" class="section">
  13. <h2 class="title">需求</h2>
  14. <p class="para">
  15. The behaviour of various aspects depends on the implementation of the
  16. underlying database. Functions such as <span class="function"><a href="function.dba-optimize.html" class="function">dba_optimize()</a></span>
  17. and <span class="function"><a href="function.dba-sync.html" class="function">dba_sync()</a></span> will do what they promise for one
  18. database and will do nothing for others. You have to download and install
  19. supported dba-Handlers.
  20. <table class="doctable table">
  21. <caption><strong>List of DBA handlers</strong></caption>
  22. <thead>
  23. <tr>
  24. <th>Handler</th>
  25. <th>Notes</th>
  26. </tr>
  27. </thead>
  28. <tbody class="tbody">
  29. <tr>
  30. <td><em>dbm</em></td>
  31. <td>
  32. Dbm is the oldest (original) type of Berkeley DB style
  33. databases. You should avoid it, if possible. We do not support
  34. the compatibility functions built into DB2 and gdbm, because
  35. they are only compatible on the source code level, but cannot
  36. handle the original dbm format.
  37. </td>
  38. </tr>
  39. <tr>
  40. <td><em>ndbm</em></td>
  41. <td>
  42. Ndbm is a newer type and more flexible than dbm. It still has
  43. most of the arbitrary limits of dbm (therefore it is
  44. deprecated).
  45. </td>
  46. </tr>
  47. <tr>
  48. <td><em>gdbm</em></td>
  49. <td>
  50. Gdbm is the <a href="ftp://ftp.gnu.org/pub/gnu/gdbm/" class="link external">&raquo;&nbsp;GNU database
  51. manager</a>.
  52. </td>
  53. </tr>
  54. <tr>
  55. <td><em>db2</em></td>
  56. <td>
  57. DB2 is for <a href="http://www.sleepycat.com/" class="link external">&raquo;&nbsp;Oracle Berkeley
  58. DB 2</a>. It is described as &quot;a programmatic toolkit that
  59. provides high-performance built-in database support for both
  60. standalone and client/server applications.
  61. </td>
  62. </tr>
  63. <tr>
  64. <td><em>db3</em></td>
  65. <td>
  66. DB3 is for <a href="http://www.sleepycat.com/" class="link external">&raquo;&nbsp;Oracle Berkeley DB
  67. 3</a>.
  68. </td>
  69. </tr>
  70. <tr>
  71. <td><em>db4</em></td>
  72. <td>
  73. DB4 is for <a href="http://www.sleepycat.com/" class="link external">&raquo;&nbsp;Oracle Berkeley DB
  74. 4 or 5</a>. This option is available from PHP 4.3.2. It can
  75. be used with BDB 5 from PHP 5.3.3.
  76. </td>
  77. </tr>
  78. <tr>
  79. <td><em>cdb</em></td>
  80. <td>
  81. Cdb is &quot;a fast, reliable, lightweight package for creating and
  82. reading constant databases.&quot; It is from the author of qmail and
  83. can be found at <a href="http://cr.yp.to/cdb.html" class="link external">&raquo;&nbsp;http://cr.yp.to/cdb.html</a>. Since it is
  84. constant, we support only reading operations. And since PHP 4.3.0
  85. we support writing (not updating) through the internal cdb library.
  86. </td>
  87. </tr>
  88. <tr>
  89. <td><em>cdb_make</em></td>
  90. <td>
  91. Since PHP 4.3.0 we support creation (not updating) of cdb files
  92. when the bundled cdb library is used.
  93. </td>
  94. </tr>
  95. <tr>
  96. <td><em>flatfile</em></td>
  97. <td>
  98. This is available since PHP 4.3.0 for compatibility with the deprecated
  99. <em>dbm</em> extension only and should be avoided.
  100. However you may use this where files were created in this format. That
  101. happens when configure could not find any external library.
  102. </td>
  103. </tr>
  104. <tr>
  105. <td><em>inifile</em></td>
  106. <td>
  107. This is available since PHP 4.3.3 to be able to modify php.ini files
  108. from within PHP scripts. When working with ini files you can pass arrays
  109. of the form array(0=&gt;group,1=&gt;value_name) or strings of the form
  110. &quot;[group]value_name&quot; where group is optional. As the functions
  111. <span class="function"><a href="function.dba-firstkey.html" class="function">dba_firstkey()</a></span> and <span class="function"><a href="function.dba-nextkey.html" class="function">dba_nextkey()</a></span>
  112. return string representations of the key there is a new function
  113. <span class="function"><a href="function.dba-key-split.html" class="function">dba_key_split()</a></span> available since PHP 5 which allows
  114. to convert the string keys into array keys without loosing <strong><code>FALSE</code></strong>.
  115. </td>
  116. </tr>
  117. <tr>
  118. <td><em>qdbm</em></td>
  119. <td>
  120. This is available since PHP 5.0.0. The qdbm library can be loaded from
  121. <a href="http://fallabs.com/qdbm/index.html" class="link external">&raquo;&nbsp;http://fallabs.com/qdbm/index.html</a>.
  122. </td>
  123. </tr>
  124. </tbody>
  125. </table>
  126. </p>
  127. <p class="para">
  128. When invoking the <span class="function"><a href="function.dba-open.html" class="function">dba_open()</a></span> or
  129. <span class="function"><a href="function.dba-popen.html" class="function">dba_popen()</a></span> functions, one of the
  130. handler names must be supplied as an argument. The actually
  131. available list of handlers is displayed by invoking
  132. <span class="function"><a href="function.phpinfo.html" class="function">phpinfo()</a></span> or <span class="function"><a href="function.dba-handlers.html" class="function">dba_handlers()</a></span>.
  133. </p>
  134. </div><hr /><div class="manualnavbar" style="text-align: center;">
  135. <div class="prev" style="text-align: left; float: left;"><a href="dba.setup.html">安装配置</a></div>
  136. <div class="next" style="text-align: right; float: right;"><a href="dba.installation.html">安装</a></div>
  137. <div class="up"><a href="dba.setup.html">安装配置</a></div>
  138. <div class="home"><a href="index.html">PHP Manual</a></div>
  139. </div></body></html>