Moron Posted September 8, 2006 Share Posted September 8, 2006 Okay, my script works but I get this warning:[quote][b]Warning:[/b] Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in [b]Unknown[/b] on line [b]0[/b][/quote]In my php.ini file, I have these settings:register_globals = Onsession.bug_compat_42 = Offsession.bug_compat_warn = OffThis is on our internal Intranet, so security isn't a big deal. Technically, all info obtained in this script is public information, anyway.So my question is...How do I turh this [b]annoying[/b] message off? Security isn't that big a deal here. I also ran phpinfo and confirmed that I'm editing the correct php.ini file.Anybody? Quote Link to comment https://forums.phpfreaks.com/topic/20119-whats-the-real-story-on-register_globals/ Share on other sites More sharing options...
wildteen88 Posted September 8, 2006 Share Posted September 8, 2006 Did you restart the server when you changed those settings that was described in the warning. Quote Link to comment https://forums.phpfreaks.com/topic/20119-whats-the-real-story-on-register_globals/#findComment-88367 Share on other sites More sharing options...
Moron Posted September 8, 2006 Author Share Posted September 8, 2006 [quote author=wildteen88 link=topic=107349.msg430550#msg430550 date=1157722871]Did you restart the server when you changed those settings that was described in the warning.[/quote]No, but I wondered about that. Is there a service I can restart instead or what about the Default Web Site? Quote Link to comment https://forums.phpfreaks.com/topic/20119-whats-the-real-story-on-register_globals/#findComment-88386 Share on other sites More sharing options...
wildteen88 Posted September 8, 2006 Share Posted September 8, 2006 No, you must restart the server (not the hardware, but the software - eg (Apache, IIS or whate ever your server software is) in order for the new settings to be vailable. If you have Apache or IIS it just restart the service. Quote Link to comment https://forums.phpfreaks.com/topic/20119-whats-the-real-story-on-register_globals/#findComment-88390 Share on other sites More sharing options...
Moron Posted September 8, 2006 Author Share Posted September 8, 2006 [quote author=wildteen88 link=topic=107349.msg430573#msg430573 date=1157724322]No, you must restart the server (not the hardware, but the software - eg (Apache, IIS or whate ever your server software is) in order for the new settings to be vailable. If you have Apache or IIS it just restart the service.[/quote]I see. Yeah, one of the guys here just suggested restarting IIS.Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/20119-whats-the-real-story-on-register_globals/#findComment-88393 Share on other sites More sharing options...
Moron Posted September 8, 2006 Author Share Posted September 8, 2006 I figured it out. I had a variable that was redundant. Quote Link to comment https://forums.phpfreaks.com/topic/20119-whats-the-real-story-on-register_globals/#findComment-88407 Share on other sites More sharing options...
Jenk Posted September 8, 2006 Share Posted September 8, 2006 you also have E_STRICT warnings on. Quote Link to comment https://forums.phpfreaks.com/topic/20119-whats-the-real-story-on-register_globals/#findComment-88506 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.