Mssql configuration in php

Source: Internet
Author: User
Php configuration mssql problems recently use php and sqlsever configuration, follow instructions to configure php

1. open php. in and remove the annotation symbol of extension = php_mssql.dll.

2. open php. in and change mssql. secure_connection = Off to on.

3. copy php_mssql.dll to the directory specified by extension_dir in php. in or the system32 directory of the system. (Php_mssql.dll is included in the php compression installation package ).

After completing the preceding steps, restart apache.

Note: in actual use, if php is manually installed under iis through the php compressed file, the machine must be restarted, not just iis.

4. ensure that ntwdblib. dll is available in php or system32, and check the attribute to make sure that the version is 8.00.194 instead of 7. 0 ......
But it still doesn't work. I am using the phpnow integrated environment. I tested it locally and found that the error Fatal error: Call to undefined function mssql_connect () was reported, do you know how to configure it?


Reply to discussion (solution)

Php5.3 is a watershed with different support for mssql
Let's talk about the php version.

Php5.3 is a watershed with different support for mssql
Let's talk about the php version.
My php version is 5.2.14

I checked sqlsrv on the Internet and used this instead. but I don't know what drivers are there !!!

Who has php_sqlsrv.dll and php_sqlsrv_ts.dll. I have been searching for N for a long time on the Internet ....

You can download the integration environment wamp, which has many ext folders. dll file. I used to directly use its built-in dll file when using this combination, instead of downloading it separately on the Internet.

I also reported this error, but the php. ini file cannot be opened.

I also reported this error, but the php. ini file cannot be opened.
Sorry, there is no way to modify it.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.