无法获得与sql server 2005工作的mssql
我是一个MySQL / Apache用户,试着用IIS和SQL服务器试试我的手,所以请,如果这是一个愚蠢的问题有耐心。 我正在使用IIS版本7.5。 PHP版本5.3.13和SQL Server 2005 IIS在端口90上运行,不知道这是否会有所作为。 我知道我的SQL服务器正在运行,因为我可以在服务器pipe理工作室中探索/连接到它。 我知道phpconfiguration正确,因为//localhost:90/phpinfo.php工作正常。 我更新了phpinfo中的php_msql.dll扩展名:extension = ext / php_msql.dll 编辑 – 但是,当我运行phpinfo()在“configuration命令”行下,这是目前:–without-mssql 我发现/下载了ntwdblib.dll,并把它放在sys32和php的根目录下。 所有这些事情本来是要解决这个问题,而他们没有。 这是我使用的代码,直接从php.net: <?php // Server in the this format: <computer>\<instance name> or // <server>,<port> when using a non default port number $server = 'localhost'; // Connect to MSSQL $link = mssql_connect($server, 'uname', 'pwd'); if (!$link) { […]