could not find driver odbc php

Problems with the Linux version of XAMPP, questions, comments, and anything related.

could not find driver odbc php

Postby kzone » 15. March 2016 08:46

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.
kzone
 
Posts: 1
Joined: 15. March 2016 08:38
Operating System: linux

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 4 guests