0
votes

We have an informix database(Version 7) running on unix (5). We need to connect to informix database from another server (Centos 6.9) using PHP(5.6) and need to update the informix data.

Is it required to install informix driver on centos server to access informix which is on another server? Because its giving Fatal error: Uncaught exception 'PDOException' with message could not find driver when trying to connect using the following code:

$dbh = new PDO("informix:host=$hostname;service=1516;database=$database;server=$informixserver; protocol=$protocolname;", $login, $password);

Please help.

1

1 Answers

0
votes

You need to install the Informix driver. See here for details how: http://php.net/manual/en/ref.pdo-informix.php