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

REGISTER_GLOBALS

This is a discussion on REGISTER_GLOBALS within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; wht is the alternative for register_glabal, i m not allowed to put on register_global on my server wht should i ...

      
  1. #1
    Lurker
    Join Date
    Aug 2003
    Posts
    4
    Rep Power
    0


    Default REGISTER_GLOBALS

    wht is the alternative for register_glabal, i m not allowed to put on register_global on my server wht should i do PLZ HELP.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    REGISTER_GLOBALS is a requirement for osCommerce to work. Without it you are sunk.

    If anyone out there has some good news on this, I havent heard it...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default

    Ask your host to turn register_globals=on in PHP.INI and all vhost in hpptd.conf as off except for your site which needs it on.

    Newer version of PHP have this turned off as a default where it was normally on. There is a "security problems" with this turned on ONLY if your not doing proper checking of input variables - ie: BAD PROGRAMING.

    There is NO harm in this turned on and using OSC.

    If your HOST is not willing to FIX this for you I am sure AABOX can do it....or PM me for other suggestions....

  4. #4
    Lurker
    Join Date
    May 2004
    Posts
    1
    Rep Power
    0


    Default Easy to fix just force your host to turn it on for you....

    in your htaccess files in both your http and https dir. add this line to force globals on

    Code:
    php_value register_globals 1
    That is it!

    http://www.smartsauctions.com

  5. #5
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default

    This ONLY works if they allow it....... It still has to be turned on for the server (but off as a site default - and allow change).
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

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


    Default

    Hi!
    I got register globals off at my host and OScommerce works fine, except for easy populate - I suppose bad programming...? It seems as the variables $usrfl_name and $localfile is empty when uploading a file - everything else works. Have anyone solved this problem?

  7. #7
    Lurker
    Join Date
    Jan 2005
    Posts
    1
    Rep Power
    0


    Default register_globals issues

    Hi,

    I am trying to run the install from

    http://<site>.com/store/catalog/install/

    and I keep getting

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

    I have set register_globals = On in php.ini and even rebooted the machine and restarted apache and I still get this error.

    Can anyone tell me why?

    Thanks a ton!

  8. #8
    Active Member developer_x's Avatar
    Join Date
    Nov 2004
    Location
    Digital Infoway
    Posts
    109
    Rep Power
    0


    Default RE: register_globals issues

    Check if register_globals is 'on' somewhere else in the same file. I know this sounds foolish. But once I had found out that php.ini file makes register_globals on/off at 2 different lines. Give it a try. And do save your file after making the modification .

  9. #9
    Active Member
    Join Date
    Jun 2004
    Location
    Glued to Computer Chair
    Posts
    108
    Rep Power
    0


    Default RE: register_globals issues

    Sites on php4 need to change in the .htaccess lines at the bottom from
    #<IfModule mod_php4.c>
    # php_value session.use_trans_sid 0
    # php_value register_globals 1
    #</IfModule>

    to
    <IfModule mod_php4.c>
    php_value session.use_trans_sid 0
    php_value register_globals 1
    </IfModule>

    This worked for me on a site that was running on php4
    True Meaning of Lost: Building a web site without knowledge or skill

    True Meaning of Crazy: Building a web site anyhow

    The Net Results: Never needing a comb again

    www.MakeMeThis.com

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 on or off?
    By safire in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 08-27-2004, 12:37 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
  •