mssql_connect(服务器, 用户名, 密码);

解决方案 »

  1.   

    XCII. Microsoft SQL Server Functions
    简介
    These functions allow you to access MS SQL Server database. 需求
    Requirements for Win32 platforms. The extension requires the MS SQL Client Tools to be installed on the system where PHP is installed. The Client Tools can be installed from the MS SQL Server CD or by copying ntwdblib.dll from \winnt\system32 on the server to \winnt\system32 on the PHP box. Copying ntwdblib.dll will only provide access. Configuration of the client will require installation of all the tools.
      

  2.   

    在system32文件中的php.ini中
    找到extension_dir = "./" 改为 extension_dir = "目录/php/ext"
    找到
    ;extension=php_mssql.dll
    将';'去掉改为
    extension=php_mssql.dll
    找到
    ;session.save_path = "/tmp"
    将';'去掉 设置你保存session的目录,如
    session.save_path = "D:/php/session_temp"; (可做可不做)重启apache服务