Connect to MS SQL Server via Linux Apache PHP

Connect to MS SQL Server via Linux Apache PHP

Connecting from a Linux Box based Apache PHP to Windows MS SQL server might be a rare scenario but if you want to achive that without recompiling PHP and Apache, here is what to do: 1. Go to http://www.freetds.org/ and download the latest package. Unpack

Mai mult…

Hints to connect to MS SQL server via Linux PHP PDO or mssql_ functions

Hints to connect to MS SQL server via Linux PHP PDO or mssql_ functions

1. Make sure you reach the port 1433 on the machine the SQL Server is running. Use telnet in this purpose. 2. On window station SQL Server is running, open a cmd.exe terminal and enter netstat -na command. Check the 1433 port is open and

Mai mult…