Page 1 of 1

could not find driver odbc php

PostPosted: 15. March 2016 08:46
by kzone
protected function odbc_pdo() {
try {
$this->connection_pdo = new PDO('odbc:' . $this->data_source . '', $this->user_name, $this->password, array(PDO::ATTR_PERSISTENT => true));
//$this->connection_pdo->exec("SET CHARACTER SET utf8");
$this->connection_pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
$this->connection_pdo = NULL;
die("Unable to connect: " . $e->getMessage());
}
}

error message -> could not find driver

PHP Version 5.6.19
os -> ubuntu 12.04

please hellp me . how to fix it.