中文域名怎样绑定网站,网站建设制作设计公司佛山,海南综合网站,中关村在线小程序我将PHP 5.6.30(https://www.apachefriends.org/de/download.html)升级到PHP 7.0(https://bitnami.com/stack/wamp/installer)到目前为止,一切都运行良好,当我使用MySQL数据库时,它将我的页面的加载时间从1,2秒减少到约300毫秒.但是现在我正在尝试使用以下简单脚本连接到MSSQL数…我将PHP 5.6.30(https://www.apachefriends.org/de/download.html)升级到PHP 7.0(https://bitnami.com/stack/wamp/installer)到目前为止,一切都运行良好,当我使用MySQL数据库时,它将我的页面的加载时间从1,2秒减少到约300毫秒.但是现在我正在尝试使用以下简单脚本连接到MSSQL数据库,这对我的旧安装(PHP 5.6)工作正常//Use the machine name and instance if multiple instances are used$server Server-Adress;$user ;$pass ;//Define Port$portPort1433;$database Databasename;$connection_string DRIVER{SQL Server};SERVER$server;$port;DATABASE$database;$conn odbc_connect($connection_string,$user,$pass);if ($conn) {echo Connection established.;} else{die(Connection could not be established.);}$sql SELECT * FROM st3_200 WHERE identifier 1;$result odbc_exec($conn,$sql);// Get Data From Resultwhile ($data[] odbc_fetch_array($result));// Free Resultodbc_free_result($result);// Close Connectionodbc_close($conn);// Show dataprint_r($data);?但是现在我的日志中出现了一个错误[Thu Dec 10 11:55:26.629956 2015] [:error] [pid 260:tid 968] [client::1:63003] PHP Fatal error: Uncaught Error: Call to undefinedfunction odbc_connect() inC:\Bitnami\wampstack-7.0.0-0\apache2\htdocs\test\query.php:11\nStacktrace:\n#0 {main}\n thrown inC:\Bitnami\wampstack-7.0.0-0\apache2\htdocs\test\query.php online 11首先我想,我的php.ini有一个缺少的扩展名,所以我启用了“extension php_pdo_odbc.dll”与5.6版本中的php.ini的区别在于有扩展名启用“extension php_mssql.dll”.但我无法在新的PHP 7.0.ini中找到它们所以我的意图是没有odbc和PHP 7的现有驱动程序了吗我在这里找到了一些Linux驱动程序https://aur.archlinux.org/packages/php7-odbc/但是我的Windows环境需要一些东西.有没有人有同样的问题,并已修复它谢谢和问候多米