php - Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' using IBM Informix and WAMP -
i got error ( fatal error: uncaught exception 'pdoexception' message 'could not find driver' in c:\wamp\www\test.php on line 30) when run php page using wamp server.
first introduce technology used.
1) adobe dreamviewer cs6
2) wamp server 2.0
3)ibm informix 64 bit
steps followed
install ibm informix 64 bit
make odbc connection (system dns) successsful
- download php_pdo.dll , php_pdo_informix.dll , paste these .dll on "c:\wamp\bin\php\php5.4.12\ext"
- add below lines in php.ini below extension
extension=php_pdo.dll
extension=php_pdo_informix.dll
*create below php code connection test ibm informix
<?php $db = new pdo("informix:host=10.81.32.12; service=1504; database=db_cra; server='servername'; protocol=onsoctcp; enablescrollablecursors=1", "userid", "pasw") or die("could not connect data); ?>
- restart wamp server , execute page
then got fatal error: uncaught exception 'pdoexception' message 'could not find driver'
please help..i'm totally new technology, let me know thing require side.
perhaps try dsn? http://php.net/manual/en/ref.pdo-informix.connection.php
$db = new pdo("informix:dsn=infdrv33", "", "");
where infdrv33
replaced name of system dsn tested.
Comments
Post a Comment