osCmax v2.5 User Manual
Results 1 to 2 of 2

register_globals on or off?

This is a discussion on register_globals on or off? within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; I am currently trying to set up the osCommerce php files and the first thing I came across was this ...

      
  1. #1
    Lurker
    Join Date
    Aug 2004
    Posts
    1
    Rep Power
    0


    Default register_globals on or off?

    I am currently trying to set up the osCommerce php files and the first thing I came across was this error:

    FATAL ERROR: register_globals is disabled in php.ini, please enable it!

    I searched the forum and found a few threads that addressed this issue, but I am still in need of some help. I am conflicted as wether to continue with the advice stated in this forum to turn the register globals on when everyone else states that it would be a security issue.

    Is the code for osCommerce safe to use with the register_globals on? This store will need to be secure and I don't want to be opening up a big security issue that will lead to a problem in the future.

    Does anyone have any feedback on this issue? I am getting conflicting answers and I figure to come to the source to get a direct answer.

    Thank you for your help!

  2. #2
    Active Member
    Join Date
    May 2003
    Posts
    148
    Rep Power
    0


    Default

    turning register globals on should be avoided as far as possible....

    having register_globals set to OFF, a variable say $foobar will not have a value unless and untill
    Code:
     $foobar = $HTTP_POST_VARS[foobar];
    $foobar is null.

    php5 by default will have register globals turned off and from the looks of it, it COULD be even deprecated...

    read this, http://us2.php.net/manual/en/security.globals.php

Similar Threads

  1. Register_Globals is Off!!!!!!
    By titascuet in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 07-26-2007, 03:06 AM
  2. urgent need help: Register_Globals
    By flyinrookie in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 03-04-2006, 11:33 PM
  3. register_globals solution
    By poiXoN in forum osCommerce 2.2 Installation Help
    Replies: 8
    Last Post: 12-31-2005, 09:25 PM
  4. REGISTER_GLOBALS
    By hussain in forum osCommerce 2.2 Modification Help
    Replies: 8
    Last Post: 01-29-2005, 12:04 PM
  5. turning register_globals OFF
    By ippo in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 01-14-2003, 11:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •