开发者

Connect WAMP to MSSQL 2008 r2: Fatal Error

i have php_mssql.dll and placed it in..

> wamp > bin > php > php5.3.0 > ext

then i edited the php.ini

i removed the ";" in the extension of php_mssql.dll and php_pdo_mssql.dll..

even though i restarted the services i still have the same error..

in my connection i used this code:

<?php

$server = 'YEEN-PC\SQLEXPRESS';

$link = mssql_connect($server, 'sa', 'saadmin');

if (!$link) {
    die('Something went wrong while connecting to MSSQL');
}
?>

then i had this error:

Fatal error: Call to undefine开发者_开发知识库d function mssql_connect() in C:\wamp\www\connect.php on line 5

plss help :(

thanks :)


You might need to restart the apache service and check your error logs to see if there are some strange entries in there,


Your problem here is that you are trying to use PHP 5.3 which doesn't include mssql. As per the PHP mssql requirements:

This extension is not available anymore on Windows with PHP 5.3 or later.

SqlSrv, an alternative driver for MS SQL is available from Microsoft: » http://msdn.microsoft.com/en-us/sqlserver/ff657782.aspx.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜