You are currently viewing Zend Server 5.x documentation. Click here to view the latest Zend Server online documentation.
You are here: API Reference Guide > PHP XMLSERVICE Toolkit > Toolkit Service Class > Setting Database Connections

Setting Database Connections

Options for Connection Settings

$ToolkitServiceObj = ToolkitService::getInstance($Host, $USER, $PASSWORD”, $ExtensionPrefix)

Arguments

Value

Description

$Host

*LOCAL – default

IBM i server address

 

TCP/IP address or Host name

$User

QTMHHTTP – default

 

 Username

IBM i username

$Password

  • No Password  for default QTMHHTTP user

  • User defined password

IBM i password

 

$ExtensionPrefix

  • Ibm_db2 – default

  • odbc

PHP extension name used for connection

Note:

The ODBC extension is recommended to use in a 2 tier environment.

For example, Zend Server installed on Windows/Linux is accessing programs/commands on the IBM i server

 

Sample Code

Usage Example

include_once 'authorization.php';
include_once '../API/ToolkitService.php';


$ToolkitServiceObj = ToolkitService::getInstance(“*LOCAL”, “USER”, “PASSWORD”, “ibm_db2”);

 

 

 

Related Links

Related Links:

Toolkit Service Class

 

 

 

© 1999-2013 Zend Technologies, Ltd. All rights reserved.