Installing and configuring PHP / MSSQL with IIS

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
jujubuddy
Forum Newbie
Posts: 2
Joined: Mon Jul 11, 2011 5:03 pm

Installing and configuring PHP / MSSQL with IIS

Post by jujubuddy »

Using sql server 2008, have installed php 5.2 but cannot connect to the database.

In the php manual here: http://www.php.net/manual/en/mssql.installation.php

It seems to provide a solution and it says:

"The MSSQL extension is enabled by adding extension=php_mssql.dll to php.ini.

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 . "

Now, I did the first part easily enough but I haven't got a clue about the " you have to compile PHP with --with-mssql[=DIR] , where DIR is the FreeTDS install prefix. And FreeTDS should be compiled using --enable-msdblib . " part.

If anyone could explain that in plain English it would be super and very much appreciated!!!!!!

Thanks in advance!
Post Reply