Installing new driver on PHP for Windows

Category: sql server driverphp

Question

John Kiernan on Fri, 29 Mar 2019 20:41:20


I am using PHP from the Windows command box.  I am able to call scripts just fine, but I need to call to odbc_connect or php_sqlsrv_connect.  But I continue to get a "Call to undefined function" error.  I have dropped this into both the PHP directory and even made an ODBC directory under \ext and init are the w4 files, etc.  I also dropped the DLL in there and also the PHP directory.  I have made sure the php.ini has the extension showing the right driver call (php_sqlsrv_73_ts_x64.dll).

What do I have to do to install this correctly?

Thanks in advance.

-- John