Deprecated: Functionset_magic_quotes_runtime () _ PHP Tutorial

Source: Internet
Author: User
Deprecated: Functionset_magic_quotes_runtime (). After upgrading the php version today, the Deprecated: Functionset_magic_quotes_runtime () isdeprecated error suddenly occurs. The cause is analyzed below: the PHP version has been upgraded recently, the Deprecated: Function set_magic_quotes_runtime () is deprecated error suddenly occurs. below we summarize

Cause analysis:

PHP has been upgraded recently. The new version of PHP has disabled set_magic_quotes_runtime ().
After PHP5.3, this feature (set_magic_quotes_runtime () has been disabled.

This feature has been completely removed from PHP6.


Solution

You can comment out or delete the wrong row, or add the @ symbol before set_magic_quotes_runtime.


You can also perform the following operations in the program:

The code is as follows:

Find:
Set_magic_quotes_runtime (0 );

Replace:
Ini_set ("magic_quotes_runtime", 0 );

This solves the problem.

Invalid Function set_magic_quotes_runtime () is deprecated error. The cause analysis is summarized below: the PHP version has been upgraded recently...

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.