PHP hints deprecated:directive ' register_globals ' is deprecated in PHP 5.3 solution

Source: Internet
Author: User
Tags deprecated ini


Under the code.

I:\>CD www

i:\www>php a.php
PHP deprecated:directive ' register_globals ' is deprecated in PHP 5.3 and great
Er in Unknown on line 0

Deprecated:directive ' register_globals ' is deprecated in PHP 5.3 and greater in
Unknown on line 0

/*=================================================
====name:dedecms 5.7 Getshell = =
===================================================
====usage:php dede.php = =
===================================================
====team:c0deplay Team = =
===================================================
====author:yaseng = =
====date:2012-06-15 01:35:00 = =
===================================================*/

I:\www>

Cause analysis

Starting with PHP 5.3, some configurations in the profile php.ini will display outdated warnings when PHP executes, these configurations will no longer exist in PHP6, and the related functionality will be closed.
Define_syslog_variables
Register_globals
Register_long_arrays
Safe_mode
Magic_quotes_gpc
Magic_quotes_runtime
Magic_quotes_sybase

It's easy to solve the problem

Only in the php.ini, you can do the following settings.

Register_globals = Off

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.