Considerations from PHP5 to PHP7--php7 full removal of MySQL extension support

Source: Internet
Author: User
Tags ereg

PHP has removed some of the functions, of which the scary ones are two:

1. Regular functions of the Ereg_* series

2. Database connection functions for the Mysql_* series

PHP7 full removal of MySQL extension support, the original Mysql_* series functions will no longer be supported in MySQL. So, if your application is still using the Mysql_* series of functions to connect to the database, please upgrade your MySQL series functions as soon as possible.

Let's take a look at what the PHP7 deleted extensions are:

  • 1. Ereg
  • 2. MSSQL
  • 3. mysql
  • 4. sybase_ct

Alternative Processing and solutions:

First, if you want to connect to Microsoft's SQL Server database, use the PDO scheme to rule

Second, if you use the MySQL series function extension to connect to the database, use the more efficient MYSQL_ND series functions. He has a higher efficiency.

Third, if you are using the Ereg series, change it as soon as possible.

Four, sybase_ct comprehensive change to sybase* series bar

Source: PHP College reprint please indicate the source.

Considerations from PHP5 to PHP7--php7 full removal of MySQL extension support

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.