리눅스(debian/ubuntu) 서버에서 PHP/MSSQL 연동
1. sudo apt-get install freetds-common freetds-bin unixodbc php5-sybase 2. sudo /etc/init.d/apache2 restart 3. sudo vim /etc/freetds/freetds.conf [yourserver] host = your.server.name port = 1433 tds version = 8.0 4. tsql -S yourserver -U yourusername -P yourpassword -D yourdatabasename 5. 테스트 PHP $link = mssql_connect('yourserver', 'yourusername', 'yourpassword'); if (!$link) die('Unable to conn..
SERVER
2016. 9. 11. 14:37