AbydosGater Posted January 13, 2007 Share Posted January 13, 2007 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 More sharing options...
AbydosGater Posted January 13, 2007 Author Share Posted January 13, 2007 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.