MatrixMails - Get paid Register Globals
Informal Linux Group Namibia
February 07, 2012, 02:57:29 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Untitled Document

Pages: [1]
  Print  
Author Topic: Register Globals  (Read 8794 times)
Steven Delport
Global Moderator
Full Member
*****

Karma: 2
Posts: 109



WWW
« on: February 21, 2007, 08:28:44 PM »

I am looking at osCommerce but it will not install with Register Globals off, I believe that it should always be set to off,
and only be used for proto typing.

Please some help here
Logged
oliver
Member
*

Karma: 0
Posts: 9


« Reply #1 on: February 22, 2007, 10:41:46 AM »

Hi there,

register_globals is a potential security problem. A hacker could access non-initialized php-variables and enter malicious code that way - if all variables are initialized (as they should always be) everything's fine.

As far as I know you can switch on register_globals in .htaccess. So you should switch it on for the folders needing register_globals only.

Oliver
Logged
Steven Delport
Global Moderator
Full Member
*****

Karma: 2
Posts: 109



WWW
« Reply #2 on: February 22, 2007, 11:06:29 AM »

Thanks Oliver as I did not write the code is seems like a big ask to check it so I will rather go someplace else
I also believe that this will not be available in PHP 6, what we saying is good forthought is always the best.
Logged
fabian
Guest
« Reply #3 on: February 22, 2007, 05:35:17 PM »

I am looking at osCommerce but it will not install with Register Globals off, I believe that it should always be set to off, and only be used for proto typing.

Hi Steven,

as oliver said, register_globals should actually always be off, however at most web hosts it's still on (because they're scared to break any scripts). If you don' have access to the php.ini, you can use a .htaccess file to modify the setting for your application:

Code:
php_flag register_globals On


and: yupp, PHP 6 won't have Register Globals, Magic Quotes and this crap... But it's still gonna take a while until there will be a release candidate...
« Last Edit: February 26, 2007, 01:53:11 PM by fabian » Logged
Informal Linux Group Namibia
   

 Logged
Pages: [1]
  Print  
 
Jump to:  

Unique Hits: 722467
Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Check PageRank