Posted by:
emollemans
(---.Red-83-35-234.dynamicIP.rima-tde.net)
Hi All,
I'm running wampserver 64 bit version with:
Apache : 2.4.4 MySQL : 5.6.12 PHP : 5.4.12 PHPMyAdmin : 4.0.4 SqlBuddy : 1.3.3 XDebug : 2.2.3
I have downloaded the Microsoft Drivers 3.0 for PHP for SQL Server.
I have put the drivers in my ext folder C:\wamp\bin\php\php5.4.12\ext
php_pdo_sqlsrv_54_ts.dll
php_sqlsrv_54_ts.dll
I have changed my php.ini file to included:
extension=php_sqlsrv_54_ts.dll
extension=php_pdo_sqlsrv_54_ts.dll
I have restarted my PC.
When I run the following php code:
<?php
$database = "master";
$conn = new PDO( "sqlsrv:server=(local) ; Database = $database", "", ""
;
?>
I still get the following error message:
Fatal error: Uncaught exception 'PDOException' with message 'could not find driver' in W:\wamp\www\sqlservertestV02.php on line 4
I have tried everything I can think of but the driver does not seem to load correctly.
Any help would be greatly appreciated.
Kind regards,
Ernst.