MSSQL
Posted: Mon Apr 24, 2006 11:13 am
I am getting the following error with PHP 5 running on a win2003 server running IIS 6 and MSSQL 8
"
Fatal error: Call to undefined function mssql_connect() in F:\Web\Inetpub\wwwroot\intranet\connect.php on line 2
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_mssql.dll' - The specified module could not be found. in Unknown on line 0
"
I'm just attempting a simply connection
The odd thing is I have the latest version of ntwdblib and php_mssql is located at c:\php\ext.
In php.ini I have removed the comment and I have pointed the extensions string to c:\php\ext. I have also tried c:\php\ext\ and c:\\php\\ext\\. I have c:\php and c:\php\ext in my path on the server as well.
Basically I am close to losing my mind, if someone could point out what I have done wrong it would be great. Thanks in advance.
"
Fatal error: Call to undefined function mssql_connect() in F:\Web\Inetpub\wwwroot\intranet\connect.php on line 2
PHP Warning: PHP Startup: Unable to load dynamic library 'c:\php\ext\php_mssql.dll' - The specified module could not be found. in Unknown on line 0
"
I'm just attempting a simply connection
Code: Select all
$connection = mssql_connect("localhost", "", "");
if ( !$connection ) {
echo ( "Could not connect to msSQL server!" );
exit;
}In php.ini I have removed the comment and I have pointed the extensions string to c:\php\ext. I have also tried c:\php\ext\ and c:\\php\\ext\\. I have c:\php and c:\php\ext in my path on the server as well.
Basically I am close to losing my mind, if someone could point out what I have done wrong it would be great. Thanks in advance.