Garethp Posted July 3, 2010 Share Posted July 3, 2010 I'm running PHP 5.3.2, and I've checked the ini file, and it has register_globals Off, but when I check phpinfo();, it says that it's on as a Local Value, but Off as a Master Value. I tried echo $ID and inputed ?ID=2 into the URL and it echoes 2, so I'm pretty sure that it's still on. Can anyone tell me how to turn it off? Quote Link to comment https://forums.phpfreaks.com/topic/206602-how-can-i-turn-off-register_globals/ Share on other sites More sharing options...
Pikachu2000 Posted July 3, 2010 Share Posted July 3, 2010 Is this on a hosting account, or what? Quote Link to comment https://forums.phpfreaks.com/topic/206602-how-can-i-turn-off-register_globals/#findComment-1080579 Share on other sites More sharing options...
Garethp Posted July 3, 2010 Author Share Posted July 3, 2010 Yes. It's on a dedicated server running CentOs. I checked the PHP.ini file using an FTP Quote Link to comment https://forums.phpfreaks.com/topic/206602-how-can-i-turn-off-register_globals/#findComment-1080587 Share on other sites More sharing options...
trq Posted July 3, 2010 Share Posted July 3, 2010 If its a dedicated server, who is in charge of maintenance? You? Is PHP installed as an Apache module or as cgi? Quote Link to comment https://forums.phpfreaks.com/topic/206602-how-can-i-turn-off-register_globals/#findComment-1080589 Share on other sites More sharing options...
Garethp Posted July 3, 2010 Author Share Posted July 3, 2010 Ah, actually I don't think anyone's in charge of the maintenance. I was hired on as the coder for their website, wanted to upgrade their PHP version so I asked for the SSH details. I do know it's installed as an Apache module. Quote Link to comment https://forums.phpfreaks.com/topic/206602-how-can-i-turn-off-register_globals/#findComment-1080638 Share on other sites More sharing options...
trq Posted July 3, 2010 Share Posted July 3, 2010 If its installed as an apache module there can only be on php.ini. Open and edit it, make sure it is the correct one. Quote Link to comment https://forums.phpfreaks.com/topic/206602-how-can-i-turn-off-register_globals/#findComment-1080665 Share on other sites More sharing options...
Garethp Posted July 3, 2010 Author Share Posted July 3, 2010 Yeah, I checked it. It's the correct one, and there's nothing even close to resembling it with an = On at the end. Also, why would there be a different value for local and master? Quote Link to comment https://forums.phpfreaks.com/topic/206602-how-can-i-turn-off-register_globals/#findComment-1080678 Share on other sites More sharing options...
wildteen88 Posted July 3, 2010 Share Posted July 3, 2010 Check that you don't have any .htaccess files which is enabling register_globals either. Quote Link to comment https://forums.phpfreaks.com/topic/206602-how-can-i-turn-off-register_globals/#findComment-1080850 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.