Kinzun
Kinzun

Reputation: 11

Xampp php_pdo_odbc not working

Xampp linux version: 7.1 OS: Ubuntu 14.04

I already uncommented extensions=php_pdo_odbc.dll in opt/lampp/etc/php.ini

but odbc is not showing

image here

Upvotes: 1

Views: 3283

Answers (1)

hassan
hassan

Reputation: 8308

you are using linux, so forget about .dll windows extension :

first you will need to check if you have the extension or not :

print_r(PDO::getAvailableDrivers());

this will print an array with the currently installed PDO Drivers,

if you didn't get the odbc driver , try to enable it :

sudo phpenmod pdo_odbc

then check again, if not installed you will need to install it :

apt-get install php7.0-odbc

Upvotes: 2

Related Questions