我在IIS | Windows Server 2012上托管我的页面,我有: SQL Server 2012
问题是我得到了这个错误:
Fatal error: Call to undefined function mssql_connect() in C:\inetpub\wwwroot\shop\inc\functions.php on line 17代码:
<?php
require_once("config.php");
if(stristr($_SERVER['PHP_SELF'], "functions.php"))
header("Location: ../");
session_start();
if (!$enable_shop)
die("<p style='text-align: center; color: #FF0000; padding-top: 30%; font-weight: bold'>The shop is currently unavailable.<br/>Please try again later.</p>");
$mssql_con = mssql_connect($mssql_server, $mssql_username, $mssql_password); //Attempt connection to MSSQL server using above server location.
if (!$mssql_con)
die("Cannot connect to MSSQL Server."); //die, stating it could not connect.
?>SQL信息很好,等等……但我认为由于某些原因,PHP不能登录MSSQL。谢谢,我希望有人能帮助我
发布于 2013-12-20 18:52:43
从文档中:
“此扩展在PHP5.3或更高版本的Windows上不再可用。”http://www.php.net/manual/en/intro.mssql.php
https://stackoverflow.com/questions/20701900
复制相似问题