The setup:
- Windows 10 Pro x64
- PHP version: 7.2.10
- ODBC v17 Installed
php_sqlsrv_7_nts_x64.dll and php_sqlsrv_7_ts_x64.dll (all dll's are in C:\xampp\php\ext)
Loaded Configuration File C:\xampp\php\php.ini
php.ini:
line 1965 of php.ini:
extension=php_sqlsrv_7_nts_x64.dll
lines 910-913: (previoius attempt)
[PHP_SQLSRV]
;extension=php_sqlsrv.dll
extension_dir = "C:\xampp\php\ext"
extension=php_sqlsrv_7_ts_x64.dll
cmd iisreset and Apache Server restarted between each attempt
But I am getting
Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect()
I've also completely closed xampp and restarted it a number of times.
To be clear, there is NO php.ini file in C:\Windows Opening php.ini via Xampp's config button opens C:\xampp\php\php.ini and that is the file I've been modifying.
[08-Apr-2021 22:20:04 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_sqlsrv_7_ts_x86' (tried: C:\xampp\php\ext\php_sqlsrv_7_ts_x86 (The specified procedure could not be found.), C:\xampp\php\ext\php_php_sqlsrv_7_ts_x86.dll (The specified module could not be found.)) in Unknown on line 0
[08-Apr-2021 22:20:04 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_sqlsrv_7_ts_x86' (tried: C:\xampp\php\ext\php_sqlsrv_7_ts_x86 (The specified procedure could not be found.), C:\xampp\php\ext\php_php_sqlsrv_7_ts_x86.dll (The specified module could not be found.)) in Unknown on line 0 [08-Apr-2021 22:20:04 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_7_ts_x86' (tried: C:\xampp\php\ext\php_pdo_sqlsrv_7_ts_x86 (The specified procedure could not be found.), C:\xampp\php\ext\php_php_pdo_sqlsrv_7_ts_x86.dll (The specified module could not be found.)) in Unknown on line 0 [08-Apr-2021 22:20:05 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_sqlsrv_7_ts_x86' (tried: C:\xampp\php\ext\php_sqlsrv_7_ts_x86 (The specified procedure could not be found.), C:\xampp\php\ext\php_php_sqlsrv_7_ts_x86.dll (The specified module could not be found.)) in Unknown on line 0 [08-Apr-2021 22:20:05 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_sqlsrv_7_ts_x86' (tried: C:\xampp\php\ext\php_sqlsrv_7_ts_x86 (The specified procedure could not be found.), C:\xampp\php\ext\php_php_sqlsrv_7_ts_x86.dll (The specified module could not be found.)) in Unknown on line 0 [08-Apr-2021 22:20:05 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_7_ts_x86' (tried: C:\xampp\php\ext\php_pdo_sqlsrv_7_ts_x86 (The specified procedure could not be found.), C:\xampp\php\ext\php_php_pdo_sqlsrv_7_ts_x86.dll (The specified module could not be found.)) in Unknown on line 0 [08-Apr-2021 15:20:07 America/Los_Angeles] PHP Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\chart\ms_sql_test.php:19 Stack trace: #0 {main} thrown in C:\xampp\htdocs\chart\ms_sql_test.php on line 19 [08-Apr-2021 22:20:22 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_sqlsrv_7_ts_x86' (tried: C:\xampp\php\ext\php_sqlsrv_7_ts_x86 (The specified procedure could not be found.), C:\xampp\php\ext\php_php_sqlsrv_7_ts_x86.dll (The specified module could not be found.)) in Unknown on line 0 [08-Apr-2021 22:20:22 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_sqlsrv_7_ts_x86' (tried: C:\xampp\php\ext\php_sqlsrv_7_ts_x86 (The specified procedure could not be found.), C:\xampp\php\ext\php_php_sqlsrv_7_ts_x86.dll (The specified module could not be found.)) in Unknown on line 0 [08-Apr-2021 22:20:22 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_7_ts_x86' (tried: C:\xampp\php\ext\php_pdo_sqlsrv_7_ts_x86 (The specified procedure could not be found.), C:\xampp\php\ext\php_php_pdo_sqlsrv_7_ts_x86.dll (The specified module could not be found.)) in Unknown on line 0 [08-Apr-2021 22:20:22 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_sqlsrv_7_ts_x86' (tried: C:\xampp\php\ext\php_sqlsrv_7_ts_x86 (The specified procedure could not be found.), C:\xampp\php\ext\php_php_sqlsrv_7_ts_x86.dll (The specified module could not be found.)) in Unknown on line 0 [08-Apr-2021 22:20:22 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_sqlsrv_7_ts_x86' (tried: C:\xampp\php\ext\php_sqlsrv_7_ts_x86 (The specified procedure could not be found.), C:\xampp\php\ext\php_php_sqlsrv_7_ts_x86.dll (The specified module could not be found.)) in Unknown on line 0 [08-Apr-2021 22:20:22 UTC] PHP Warning: PHP Startup: Unable to load dynamic library 'php_pdo_sqlsrv_7_ts_x86' (tried: C:\xampp\php\ext\php_pdo_sqlsrv_7_ts_x86 (The specified procedure could not be found.), C:\xampp\php\ext\php_php_pdo_sqlsrv_7_ts_x86.dll (The specified module could not be found.)) in Unknown on line 0 [08-Apr-2021 15:20:23 America/Los_Angeles] PHP Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\chart\ms_sql_test.php:19 Stack trace: #0 {main} thrown in C:\xampp\htdocs\chart\ms_sql_test.php on line 19 [08-Apr-2021 15:20:25 America/Los_Angeles] PHP Fatal error: Uncaught Error: Call to undefined function sqlsrv_connect() in C:\xampp\htdocs\chart\ms_sql_test.php:19 Stack trace: #0 {main} thrown in C:\xampp\htdocs\chart\ms_sql_test.php on line 19


C:\xampp\php\php.inireally thephp.inifile that apache is using? - Larnu