Forum Moderators: coopster

Message Too Old, No Replies

cannot get mssql.dll enabled?

         

jackvull

1:19 pm on Nov 21, 2007 (gmt 0)

10+ Year Member



I'm trying to install the extension for mssql.
I have it uncommented in my php.ini
extension=php.mssql.dll

php_mssql.dll is also in my system32 folder on Windows
but it doesn't show up in the info page nor when I test this code:

<?php

if (function_exists('mssql_connect'))
{
echo "Okay, fn is there";
}
else
{
echo "Hmmm .. fn is not even there";
}

?>

Any ideas on what to check?

coopster

3:32 pm on Nov 27, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Hey jackvull, did you get this resolved? My first response would be to be certain you rebooted your HTTP server after making the php.ini changes. Next, this thread [webmasterworld.com] in the PHP Forum Library has some tips on troubleshooting MySQL, but many of the same steps will hold true for most any other extension you are troubleshooting.

WesleyC

7:35 pm on Nov 27, 2007 (gmt 0)

10+ Year Member



Also try putting the .dll in the PHP directory itself, instead of the system32 directory.

jackvull

10:40 pm on Nov 27, 2007 (gmt 0)

10+ Year Member



Actually the php.ini file was in the PHP directory but it needed to be in the system32 directory. I did that then it all worked fine.
The confusion was that on my local computer for development it works the other way round!

Annoying...