Dedecms php.ini register_globals must is off_php tutorial

Source: Internet
Author: User
Dedecms php.ini register_globals must is OFF

Way to go directly to the include/common.inc.php tutorial will

----
Prohibit Session.auto_start
if (Ini_get (' Session.auto_start ')! = 0)
{
Exit (' php.ini Session.auto_start must is 0! ');
}
----
Delete.

==================
After this deletion, then look down ...
There's one more place
if (Ini_get (' register_globals '))
{
Exit (' PHP.ini register_globals must is off! ');
}
After deletion, it can be solved perfectly.

The sections that need to be removed are:
1. 第10-20 Line
There are many unsafe possibilities for opening register_globals, so it is mandatory to shut down register_globals
if (Ini_get (' register_globals '))
{
Exit (' PHP.ini register_globals must is off! ');
}

Prohibit Session.auto_start
if (Ini_get (' Session.auto_start ')! = 0)
{
Exit (' php.ini Session.auto_start must is 0! ');
}

2. Line 72nd to 75th
if (Ini_get (' register_globals '))
{
Exit (' PHP.ini register_globals must is off! ');
}

The above two delete can be solved perfectly!

Search for this item in Apche's php.ini, your should be register_globals = on modified to Register_globals = Off Save restart server environment such as restart Apche

The morning update is mainly for register_globals and Session.auto_start strict filtering
If the user of a standalone server can modify php.ini in the PHP configuration file, change Register_globals=on to Register_globals=off
Also change the session.auto_start=1 to session.auto_start=0, then restart Apache.
If the user is a virtual host, notify the space provider as much as possible to modify the configuration, or you can try Ini_set (' Session.auto_start ', 0).
If it doesn't work, it's only the last way to go straight to include/common.inc.php.

----
Prohibit Session.auto_start
if (Ini_get (' Session.auto_start ')! = 0)
{
Exit (' php.ini Session.auto_start must is 0! ');
}

http://www.bkjia.com/PHPjc/632370.html www.bkjia.com true http://www.bkjia.com/PHPjc/632370.html techarticle dedecms php.ini register_globals must is off method go directly to include/common.inc.php Tutorial will----//Forbidden Session.auto_start if (ini_ge T (' Session.auto_start ')! = 0) {exit (' ph ...

  • 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.