For Microsoft SQL Server.
I already have ENterprise Manager on my computer so Microsoft's client tools must be installed.

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";
}

?>

No loading errors either when starting the webserver.
Any ideas on what to check?

    Well the first thing you need to do is delete any files you moved outside of the PHP folder - this is never a good idea!

    Second thing you need to do is verify a few things:

    • Did you add the PHP directory to your system's PATH environment variable? There's a link to the PHP manual on how to do this in the sticky in this forum.

    • Do you know for a fact that PHP is reading the php.ini file you're editing? For example, if you change some other directive (ex. change display_errors from Off to On) does phpinfo() reflect this change?

    • Did you restart your webserver after making a change to the php.ini file?

      2 months later
      5 years later

      I'm having a similar problem... My issue is message when using MuWeb 0.6, it keeps saying this

      Error #123
      Loading php_mssql.dll Falied!
      Please Enable php_mssql.dll in ur php.ini

      Any help with this would be nice thanks.

        What it says: "Enable php_mssql.dll in ur [sic] php.ini".

          that's where it get's confusing, it is enabled...

            Write a Reply...