Home > PHP > Function > DBA > dba_popen()

dba_popen()

dba_popen - Open database persistently

Syntax

resource dba_popen (string $path, string $mode, string $handler, mixed $...)

Arguments

  • path - Commonly a regular path in your filesystem.
  • mode - It is rfor read access, wfor read/write access to an already existing database, cfor read/write access and database creation if it doesn\'t currently exist, and nfor create, truncate and read/write access.
  • handler - The name of the handlerwhich shall be used for accessing path. It is passed all optional parameters given to dba_popen() and can act on behalf of them.
  • ...

Description

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

Version

PHP 4, 5

Return value

Returns a positive handle on success or FALSE on failure.