connecting to SQL Server 2008 using php pdo -
i working sql server 2008
, php pdo
. trying connect php
sql server 2008
.
my php version is:5.5.12
i getting error :: not find driver
what tried connect sql server 2008 database
php
like:
<?php $dbhost = "localhost"; $dbname = "xxxxxx"; $dbuser = "xx"; $dbpass = ""; try { $con = new pdo("sqlsrv:host=$dbhost;dbname=$dbname",$dbuser,$dbpass); } catch (pdoexception $e) { echo $e->getmessage(); } ?>
i surfed lot did not found solution. extensions in php.ini
extension=php_sqlsrv_55_ts.dll extension=php_pdo_sqlsrv_55_ts.dll
location put dll c:\wamp\bin\php\php5.5.12\ext
Comments
Post a Comment