0
I'am在IIS上託管我的頁面| Windows Server 2012中 我:SQL Server 2012的PHP + MSSQL + IIS
事情是我'得到這個錯誤:
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。 謝謝你,我希望有人能幫助我
我只需要將.dll放在Ext文件夾中。並啓用他們在php.ini? – user3091970
請嘗試推薦的替代方法:http://msdn.microsoft.com/en-us/sqlserver/ff657782.aspx – MillaresRoo
您可以查看:http://stackoverflow.com/questions/7402713/如何對GET-MSSQL-工作與-PHP-5-3 – MillaresRoo