Connect PHP 7.2 to SQLSERVER 2014

0

I am trying to connect my PHP v7.2.10 to SQLServer2014 I have seen quite a few tutorials and I have not managed to do it, I have downloaded the corresponding libraries to the version of my PHP (php_pdo_sqlsrv_72_nts.dll, php_pdo_sqlsrv_72_ts.dll,    php_sqlsrv_72_nts.dll, php_sqlsrv_72_ts.dll) then I paste them into the PHP / ext folder, besides writing the names of them in the PHP.ini (extension = php_pdo_sqlsrv_72_nts.dll ...) I restart the server and then turn it on and I do not load the libraries in PHPInfo. I get the following error when I run the connection:

  

Fatal error: Uncaught Error: Call to undefined function   sqlsrv_connect () in C: \ xampp \ htdocs \ DB \ connectionion.php: 8 Stack trace: # 0   {main} thrown in C: \ xampp \ htdocs \ DB \ conexion.php on line 8

This is the code of my connection that I am running.

and this is what I do in PHP.ini and in the EXT folder ..... I hope you can help me: D

    
asked by Sergio Cordova 03.10.2018 в 22:01
source

0 answers