0

We are having this exact problem but with SQL Server instead of MYSQL: Script dies without error after calling mysql_connect()

(the mssql_pconnect command instead of mysql_pconnect)

However, we downloaded the dll and linked the extension in the php.ini file as suggested and it still isnt working. We are working on a Windows 2008 Standard R2 with IIS 7.0

We're getting an "undefined function: mssql_pconnect" in the php log

Any ideas what might be wrong?

4
  • 1
    Is the MS SQL extension reprorting as loaded on a phpinfo() output? Are you using the correct php.ini file? And last but not least: Is your MS SQL extension compatible to your PHP version? This new question seems to say that different PHP versions need different MS SQL extensions. stackoverflow.com/questions/25693100/… Commented Sep 5, 2014 at 20:10
  • @Mastacheata it doesnt show up on the phpinfo page. and the phpinfo output has "--without-mssql" in the configure command box. We thought we were using the right ini file, but it doesnt seem that it is working. Commented Sep 5, 2014 at 20:24
  • That is your problem as far as the PHP documentation goes. > 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 Commented Sep 5, 2014 at 20:29
  • if mssql doesn't show up in phpinfo(), then it's NOT enabled, and the functions will not exist. Commented Sep 5, 2014 at 20:34

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.