ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:session:reference:host

ADOdb_Session::host

Syntax
string ADOdb_Session::host(
  optional string $hostName
  )

Description

The static method host sets or gets the hostname on the session connection. This is not the same value as the hostnameassociated 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::host('127.0.0.1');
ADOdb_Session::config('','',$user,$pass,$database);
v5/session/reference/host.txt · Last modified: 2018/07/01 21:59 by peterdd