On 12/28/2012 6:45 PM, Les Henderson wrote:
I just installed .9 but get this error showing everywhere.*
Deprecated violation:* Directive 'register_globals' is deprecated in PHP 5.3
and greater
in Unknown line 0
register_globals is a "feature" in older versions of PHP that
automatically creates variables from values passed on the query string.
For example, if you request this URL:
http://example.com/foo.php?bar=6
Then PHP will automatically create a variable named $bar with the value
of 6 before executing the script. This is very insecure (since any
random user can create any random variable on your site, like $logged_in
= true) and has been deprecated in PHP 5.3, and removed entirely (I
belive) in PHP 5.4
Habari doesn't use this feature at all and never has. The problem
exists in your server's PHP configuration.
There is a setting in your php.ini that has register_globals set to
true, on, or 1. This will trigger the error you're seeing. It also
explains why the error is in the file "Unknown" on line 0.
If your host sets that value automatically by default, you should
probably tell them about it because it's a really bad idea. If you have
other software that requires this setting, you should try to upgrade it,
or at least add a line to the .htaccess for that application that lets
it continue to run, while not compromising other applications.
Hopefully that's helpful to you.
Owen
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/habari-users