Make PDO_SQL extension work on PHP (sql server) help

0

I can not make the PDO_SQL extension get into PHP in any way I'm running Wampserver with PHP Version 7.1.9 in php.ini the extensions look like this:

extension=php_pdo_sqlsrv_7_ts_x64.dll
extension=php_sqlsrv_7_ts_x64.dll

The files are in the directory of php extensions correctly but in phpinfo, does not enter sqlsrv in any way I ran this script below to test but false returns

<?php
var_dump(extension_loaded('pdo_sqlsrv'));
?>

I do not know what else to do for these extensions to work, I've tried everything on other machines Who can give me an aid? Thank you very much.

Joab

    
asked by anonymous 03.01.2018 / 11:46

1 answer

0

In WampServer you should open the file C:\Wamp\bin\php\php<version>\phpForApache.ini , search for ;extension=pdo_sqlsrv , and remove the semicolon, if you do not have this line, just add and restart WampServer

Also check that the extension is compatible with your PHP version

link

link

    
03.01.2018 / 12:04