PHP.nl

dba_popen

dba_popen

Open database persistently

 **dba_popen** string $path string $mode  $handler int $permission int $map_size  $flags
establishes a persistent database instance

for with using . dba_popen``path``mode``handler

pathCommonly a regular path in your filesystem.

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

handler The name of the which shall be used for accessing . It is passed all optional parameters given to and can act on behalf of them. If is null, then the default handler is invoked. handlerpath``dba_popen``handler

permission Optional integer parameter which is passed to the driver. It has the same meaning as the parameter of , and defaults to . permissions``chmod``0644

  The , , ,
  , , ,
  , and  drivers support the
   parameter.
 `db1``db2``db3``db4``dbm``gdbm``ndbm``lmdb``permission`

map_sizeOptional integer parameter which is passed to the driver. Its value should be a multiple of the page size of the OS, or zero, to use the default mapsize.

  The  driver accepts the  parameter.
 `lmdb``map_size`

flags Allows to pass flags to the DB drivers. Currently, only LMDB with and are supported. DBA_LMDB_USE_SUB_DIR``DBA_LMDB_NO_SUB_DIR

Returns a instance on successreturn.falseforfailure. Dba\Connection

false is returned and an level error is issued when is null, but there is no default handler. E_WARNING``handler

dba_open``dba_close