在IIS中使用PHP时“调用undefined .. mssql_connect”?

May is ask you about how to connect to Microsoft SQL server 2005 enterprise using PHP.

I am using Appserv 2.5.10 ( Apache 2.2.8, PHP 5.2.6) and SQL server 2005

After I place the extension download from this link :

http://www.microsoft.com/en-us/download/details.aspx?id=20098

enable the php.ini file by adding these lines.

extension=php_pdo.dll
extension=php_sqlsrv_52_ts_vc6.dll
extension=php_pdo_sqlsrv_52_ts_vc6.dll

Restart Apache using this code to connect

$link = mssql_connect($server, $user, $pass);

Error shown in browser is

Fatal error: Call to undefined function mssql_connect() in G:\AppServ\www\testmssql_connect.php on line 12

can anyone help me ?

NOTE: i am using windows server 2003 and i don't found this OS in OS supporting list of Microsoft Driver 3.0 for PHP. Is this issue cause the problem ?

Look at this link:

1) Check your PHP.INI file's extension_dir

2) Make sure you copied your .dlls into that directory (for example, into C:\PHP\ext").

3) Create a dummy page to call phpinfo();. Display the page in a browser. Make sure you see entries for "sqlsrv".

'Hope that helps!