Jump to content

What's the REAL story on register_globals?


Moron

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?

Link to comment
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?

Link to comment
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!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.