[NA] MS SQL - PHP - Linux

CJones

Final Approach
Joined
Mar 14, 2005
Messages
5,791
Location
Jawjuh
Display Name

Display name:
uHaveNoIdea
So I have somehow sucessfully installed Ubuntu 9.10 on one of our old servers. We want to move some of our 'web tools' to the linux box, but we need to be able to connect to a MSSQL database for our tools to work.

I've been Googling all frickin day, and the only info I can find is from 2003 or earlier. SURELY there is more up-to-date info regarding how to be able to connect our PHP scripts to a remote MSSQL server. All of the documentation I've found has outdated download links and directory structures.

Anybody got an idea on how to get a Linux-based PHP install to be able to connect to a remote MSSQL database?

Question tomorrow will be: How to get the same PHP install to be able to connect to a remote Oracle database. But right now I'm focusing on the MSSQL part.
 
Try:

apt-get update
apt-get install php5-odbc tdsodbc

Not sure if you'll have to enable anything in php.ini or not. Usually you can define the connection settings using the PHP functions
http://us2.php.net/mssql
 
Last edited:
Back
Top