Fatal error: Call to undefined function sqlsrv_connect() There are mostly two php.ini changes files located, in my case, for wamp or xampp server. One is simple change under the php custom folder changes and the other changes one is in the path of C:\wamp\bin\apache\Apachex.x.x\bin folder. When connecting to SQL database through sqlsrv_connect used this function,