Results 1 to 3 of 3

Thread: Register_global

  1. #1
    Join Date
    Jun 2005
    Location
    Internet
    Posts
    449

    Register_global

    Hi guys

    I have seen mant a times this parameter is set to off on php.ini

    What would happen if this is set to off.
    Some of my clients get errors while installing shopping cart.

    Is there any major security risk if set to on ?

  2. #2
    Crucial Web Host is offline [email protected]
    Join Date
    Apr 2006
    Location
    Phoenix, AZ, USA
    Posts
    745
    Quote Originally Posted by Cool Surfer
    Hi guys

    I have seen mant a times this parameter is set to off on php.ini

    What would happen if this is set to off.
    Some of my clients get errors while installing shopping cart.

    Is there any major security risk if set to on ?
    You have a good question here. When you set register_globals to off you are going to have more built in security at the expense of your scripts that required registered global vars. Since PHP4.2.0 the default has been to set register_globals to 'off'.

    PHP.net has a fine write up on registered_globals and your time would be much better spent reading this link than my post.

    http://www.php.net/register_globals

    Kindly,
    CrucialHosting.com - Performance Hosting Solutions:
    SamsClub.com - Walmart.com - Ellusionist.com - CampSaver.com

    Check out our Site Showcase for more big brand examples!

  3. #3
    Join Date
    Feb 2001
    Location
    West Michigan, USA
    Posts
    9,675
    Keep it off. Your clients can always enable it via .htaccess, if needed.

    --Tina
    ||| 99.999% Uptime SLA!!!
    Plenty of space and bandwidth to fit your needs!
    www.AEIandYou.com - - (WP Friendly - Premium Reseller Hosting and Cheap Dedicated Servers)

Posting Permissions

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