Jump to content

INI SET? 5.1.6


AbydosGater

Recommended Posts

Hi i have 3rd party software running on my site.. and i recently moved hosts.. on the old host they had register_globals turned on.. and everything worked fine. But on the new host they have it off. And it all stopped working.. I wasnt sure at first what was wrong so i contacted my 3rd party softwats forums and said that the one change was RG to off.. and they said that if theres no RG theres no software.. so i though ok fine and went to the common.php file which is included into every file.. and put in..

ini_set('register_globals', 'On');

And that didnt work? Can i set it locally in 5.1.6?

-Andy
Link to comment
https://forums.phpfreaks.com/topic/34057-ini-set-516/
Share on other sites

Ah it would be ok now.. im emulating it..


if (!ini_get('register_globals')) {
    $superglobals = array($_SERVER, $_ENV,
        $_FILES, $_COOKIE, $_POST, $_GET);
    if (isset($_SESSION)) {
        array_unshift($superglobals, $_SESSION);
    }
    foreach ($superglobals as $superglobal) {
        extract($superglobal, EXTR_SKIP);
    }
    ini_set('register_globals', true);
}


-Andy
Link to comment
https://forums.phpfreaks.com/topic/34057-ini-set-516/#findComment-160109
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.