ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:session:reference:driver

This is an old revision of the document!


ADOdb_Session::driver

Syntax
bool ADOdb_Session::driver(
  optional string $driverName
  )

Description

The static method driver sets or gets the ADOdb database driver on the session connection. This is not the same value as the driver associated with the database abstraction layer.

The value must be set before config() is called

Use As A Getter

When used without parameters it returns the currently set value

Usage

 
include_once 'adodb/adodb.inc.php';
include_once "adodb/session/adodb-session2.php";
 
ADOdb_session::driver('oci8');
ADOdb_session::config('',$host,$user,$pass,$database);
ADOdb_session::debug(true);
v5/session/reference/driver.1463840073.txt.gz · Last modified: 2017/04/21 11:38 (external edit)