Call to undefined function odbc_connect() php 7

后端 未结 7 1424
轻奢々
轻奢々 2020-11-30 11:27

I\'m testing out php 7 and have come across this error:

Fatal error: Uncaught Error: Call to undefined function odbc_connect()

From the doc page: http://php.

相关标签:
7条回答
  • 2020-11-30 12:28

    Just enble "php_odbc.dll" extension by removing the semicolon and restart Apache.

    If there is no such line in php.ini, simply create it on yourself (you will find many similar lines in php.ini) by adding: extension=php_odbc.dll and then restart Apache.

    If Apache does not start or cannot load php_odbc.dll, look into to the ext-Folder of PHP, if there is such a DLL called php_odbc.dll. If there is no such DLL, Xampp/PHP7 does not support ODBC natively. In that case you should install an older Xampp Version with PHP 5.x

    0 讨论(0)
提交回复
热议问题