View Full Version : trouble loading php_mssql extension(with WAMP)

12-01-2010, 01:59 AM
I have have been trying for hours to connect php with ms sql server 2005, but I can't get it, I get these error when I run a web page.

Call to undefined function mssql_connect()

I have these php.ini below, still it does not work, the extension is not loaded
extension=php_mssql.dll. PHP Version 5.3.0. I know many encountered these problem, I tried their solutions, but I can't get it to work.

12-01-2010, 03:43 PM
Did you do this?

To get these functions to work, you have to compile PHP with --with-mssql[=DIR] , where DIR is the FreeTDS install prefix. And FreeTDS should be compiled using --enable-msdblib .