Php Call to undefined function mssql_connect ()

Source: Internet
Author: User
Tags ini mssql

Now, if you want to connect MSSQL2000 and import MSSQL data to MYSQL, you cannot connect MSSQL,
Message: Call to undefined function mssql_connect ()

Steps:
1: php. ini
Remove the semicolon before extension = php_mssql.dll
2:
Copy php_mssql.dll to the ext Directory. The ext directory is the extension_dir Directory. php_mssql.dll is not found in PHP5. It was copied from the previous PHP4. I don't know if the version is correct,

3: modified php_mssql.dll. Copied it to the system32 directory, and copied it to the windows directory.

Resolution method

1: php. ini
Remove the semicolon before extension = php_mssql.dll
Correct. Required
2:
Copy php_mssql.dll to the ext Directory. The ext directory is the extension_dir Directory. php_mssql.dll is not found in PHP5. It was copied from the previous PHP4. I don't know if the version is correct,
Yes.
3: modified php_mssql.dll. Copied it to the system32 directory, and copied it to the windows directory.
It's okay if you don't need this.

The key step is not done!
Place ntwdblib. dll in the system's search path

Upgrade SQL Server 2000 to SP4. Otherwise, php cannot connect to Port 1433 of SQL server after mssql_connect.

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.