In the case of php5.3, The dblib driver of pdo cannot connect to mssql. According to the official description, 5.2 has modified this bug, but 5.3 does not. You can use the mssql function provided by php.
In the case of php5.3, The dblib driver of
Because of the work we need to access our previous SQL Server 2005 data through PHP, so we have the birth of this article. Nonsense is less, do programming the least like to beat around the bush. Use the introduction steps to explain the problem and
php5.3 case, with PDO Dblib driver can not connect MSSQL, according to the official description, 5.2 has modified this bug,5.3 No.It is possible to use the MSSQL function that comes with PHP. Compile the Freetds,php_mssql,pdo_dblib parameters as
Install and configure freetds-connect to msssql in Linux
Connecting to MSSQL in Linux is very painful because Microsoft does not provide any interfaces to developers. They think that MSSQL is only a Windows operating system. Fortunately, MSSQL is
After changing my work, I have been busy with the LINUX system architecture, and have gone through the pains of never understanding too much to be familiar with others. In the course of work, Baidu has always been the preferred search engine. But
Use FreeTDS in Linux to access the Microsoft SQL Server database
Download freetds http://www.freetds.org/
With PHP's support for MSSQL:
./Configure -- with-mssql =/usr/local/freetds
If:
Configure: error: Directory/usr/local/freetds is not a
Because the company's environment is under Linux, so want to build on their own machines to imitate Linux environment
Environment for Linux +mssql+php +nginx+freetds
So I thought of Cygwin.
Go to http://www.cygwin.com download setup.exe
Then install,
Preface:After changing my work, I have been busy with the LINUX system architecture, and I have never been too familiar with myself. In the course of work, Baidu has always been the preferred search engine. But later, I had to and eventually used
In CentOS 5.4 Linux, PHP (FastCGI) needs to connect to the SQL Server 2000 database of the relevant department and configure the extended FreeTDS extension.
1. Compile and install FreeTDS
mkdir -p /data0/software/
cd /data0/software/
1. Download: freetds-patched.tar.gz http://www.freetds.org/software.htmlHttp://www.freetds.org/userguide/choosingtdsprotocol.htm# TAR-ZXVF Freetds-patched.tar.gz# CD freetds-1.00.21Note that this is the--with-tdsver=7.4, this is very important, you
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.