PHP class library to provide powerful abstractions for performing queries and managing databases.
mnewnham on master
Add support for release candida… (compare)
mnewnham on master
Removed references to phplens.c… (compare)
mnewnham on 5.20
Removed hotlinks to PHPlens see… (compare)
mnewnham on master
Removed the note about PHPlens … (compare)
Hi! Would need some help with connecting PHP7.2 on Centos 7 with adoDB 5.20.14 to MSSQL server 2012. I have following settings: Into folder /usr/lib64/php/modules I have copied the files php_sqlsrv_72_nts.signature, php_sqlsrv_72_nts.so, php_sqlsrv_72_ts.signature, php_sqlsrv_72_ts.so. In php.ini I have the extension setup: [mssqlnative]
extension=/usr/lib64/php/modules/php_sqlsrv_72_ts.so. In my connection class I've following settings: <?php
require_once('ADOdb-5.20.14/adodb.inc.php');
$_SYS_DB_CONFIG = array(
'host' => ‘xx.xxx.xxx.xxx’,
'database' => 'test',/
'user' => 'dbuser',
'password' => ‘password’,
'type' => 'mssqlnative'
);
function getDBConnection() {
global $_SYS_DB_CONFIG;
$cnn = adoNewConnection($_SYS_DB_CONFIG['type']);
//$cnn->setConnectionParameter('CharacterSet','ISO-8859-15');
$ret = $cnn->Connect(
$_SYS_DB_CONFIG['host'],
$_SYS_DB_CONFIG['user'],
$_SYS_DB_CONFIG['password'],
$_SYS_DB_CONFIG['database']
) or die("Unable to connect to server");
if (!$ret) {
Oops :
PHP Fatal error: Uncaught Error: Call to a member function prepare() on bool in /srv/npsm/httpd/www/htdocs/ADOdb-5.20.14/drivers/adodb-pdo.inc.php:479