★ wanayoo — archive 1999 http://www.php.net/manual/function.dba-open.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to dba
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
dba
* dba_close
* dba_delete
* dba_exists
* dba_fetch
* dba_firstkey
* dba_insert
* dba_nextkey
* dba_popen
* dba_open
* dba_optimize
* dba_replace
* dba_sync
Manual: dba_open
View the source code for this pageSearch the site



Previous page
 dba_popen
 Updated
Sat, 12 Aug 2000
dba_optimize 
Next page


dba_open

(PHP3 >= 3.0.8, PHP4 >= 4.0b2)

dba_open -- Open database

Description

int dba_open (string path, string mode, string handler [, ...])

dba_open() establishes a database instance for path with mode using handler.

path is commonly a regular path in your filesystem.

mode is "r" for read access, "w" for read/write access to an already existing database, "c" for read/write access and database creation if it doesn't currently exist, and "n" for create, truncate and read/write access.

handler is the name of the handler which shall be used for accessing path. It is passed all optional parameters given to dba_open() and can act on behalf of them.

dba_open() returns a positive handler id or false, in the case the open is successful or fails, respectively.

See also: dba_popen() dba_close()


User Contributed Notes: dba_open


ian@eiloart.com
08-Jul-1999 07:02
For example, if you are using the gdbm database, the value of <i>handler</i> should be the string <code>"gdbm"</code>.

Note that the order of the parameters for <code>dba_insert()</code> (etc) is different than for <code>dbminsert()</code>



 About Notes


Previous page
 dba_popen
 Updated
Sat, 12 Aug 2000
dba_optimize 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.