I'm having a very hard time connecting to a MSSQL database from my Redhad linux box using PHP. I've Googled this thing to death and everything I try doesn't seem to work.
I've installed FreeTDS and compiled the PHP install package to create the mssql.so extension. I've placed the extension in the correct extensions directory and I've added the extension to my php.ini file.
I've also turned off all firewalls to take that out of the picture.
The latest PHP I tried is:
<?php
echo "y";
$server = 'SERVERNAME';
echo "e";
// Connect to MSSQL
$link = mssql_connect($server, '<USERNAME>', '<PASSWORD>');
echo "s";
if (!$link) {
die('Something went wrong while connecting to MSSQL');
}
echo "!";
?>
When I execute this code, I get nothing. So added those echos and all I get is ye, which tells me that it is not connecting at all. Any help will be greatly appreciated. I've tried searching for log files on the server, but I don't really know what to be looking for.