Jump to content

Archived

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

Moron

What's the REAL story on register_globals?

Recommended Posts

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 = On

session.bug_compat_42 = Off
session.bug_compat_warn = Off

This 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?

Share this post


Link to post
Share on other sites
Did you restart the server when you changed those settings that was described in the warning.

Share this post


Link to post
Share on other sites
[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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
[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!

Share this post


Link to post
Share on other sites

×

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.