开发者

Connect WAMP to MSSQL 2008 r2: Fatal Error

开发者 https://www.devze.com 2023-04-13 08:45 出处:网络
i have php_mssql.dll and placed it in.. > wamp > bin > php > php5.3.0 > ext then i edited the php.ini

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

精彩评论

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

关注公众号