This question has already been answered:
Good day.
PHP 7, IIS 7.5 Windows Server 2008r2 when trying to connect to MSSQL an error occurs:
PHP Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() in C:\inetpub\путь\connect.php:4 Stack trace: #0 {main} thrown in C:\путь\connect.php on line 4 extension=php_mssql.dll no extension=php_mssql.dll directive in php.ini extension=php_mssql.dll no php.ini itself in this release, it was replaced with php.ini-development and php.ini-production
The script itself:
$serverName = "mssql02\"; $connectionInfo = array( "Database"=>"", "UID"=>"", "PWD"=>""); $conn = sqlsrv_connect( $serverName, $connectionInfo); if( $conn ) { echo "Соединение удалось.<br />"; }else{ echo "Соединение не удалось, ошибка:"; die( print_r( sqlsrv_errors(), true)); } the fact that there is no server name, username, password, etc. is not an error, just removed specially
PDO downloaded, threw in the ext folder:
in php config added line: 
but you don't want to work

phpinfo()it is clear that there is an extension? - u_mulderphp.ini-*copy it inphp.ini? - u_mulder