ittec
26th November 2007, 12:43
About this tutorial: http://www.howtoforge.com/installing_php_mssql_centos5.0
Hello
i applied the HowToForge's tutorial of PHP5 and MSSQL but i can't connect to SQL Server(2005 or 2000). I tested the connection with this script:
$hostdbnot = "xxx";
$userdbnot = "xxx";
$passdbnot = "xxx";
$basedbnot = "xxx";
$dbgamesnot = mssql_connect($hostdbnot, $userdbnot, $passdbnot);
if ($dbgamesnot) echo 'Great!';
else echo 'Damn';
mssql_select_db($basedbnot, $dbgamesnot);
echo mssql_get_last_message();
The code returns "Damn" string. I have a php scritp with phpinfo() and this function returns as MSSQL is enabled.
mssql
MSSQL Support enabled
Active Persistent Links 0
Active Links 0
Library version FreeTDS
Are there any other action to try or test? Its very strange that phpinfo() shows MSSQL as enabled but its impossible to connect to Sql Server.
Thanks
Hello
i applied the HowToForge's tutorial of PHP5 and MSSQL but i can't connect to SQL Server(2005 or 2000). I tested the connection with this script:
$hostdbnot = "xxx";
$userdbnot = "xxx";
$passdbnot = "xxx";
$basedbnot = "xxx";
$dbgamesnot = mssql_connect($hostdbnot, $userdbnot, $passdbnot);
if ($dbgamesnot) echo 'Great!';
else echo 'Damn';
mssql_select_db($basedbnot, $dbgamesnot);
echo mssql_get_last_message();
The code returns "Damn" string. I have a php scritp with phpinfo() and this function returns as MSSQL is enabled.
mssql
MSSQL Support enabled
Active Persistent Links 0
Active Links 0
Library version FreeTDS
Are there any other action to try or test? Its very strange that phpinfo() shows MSSQL as enabled but its impossible to connect to Sql Server.
Thanks