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? 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? 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 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? 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. 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. 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? 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. 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
Archived
This topic is now archived and is closed to further replies.