Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Mar 2004
    Location
    Australia
    Posts
    217
    Thanks
    0
    Thanked 1 Time in 1 Post

    Setting Register_Globals = On

    Ive just signed up to a new web host, webcentral. They have r_g set to off but i need to use it for my site. I may have posted on here before and i acquired a fix for it but i was unable to find the post again.

    If anyone could assist me that would be great.

  • #2
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,100
    Thanks
    2
    Thanked 23 Times in 23 Posts
    Is this what you're looking for?

    If that doesn't work for you, check with your web host. They might have to use some funky way of turning off register_globals for you, same as what I had to go through.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #3
    Senior Coder
    Join Date
    Feb 2003
    Posts
    1,665
    Thanks
    0
    Thanked 27 Times in 25 Posts
    Rather than open yourself up to a security flaw by having globals on, why not simply tweak your variable references so that they work with globals off?

    http://uk2.php.net/register_globals
    http://www.zend.com/zend/art/art-sweat4.php

  • #4
    Regular Coder trib4lmaniac's Avatar
    Join Date
    Feb 2004
    Location
    Cornwall, UK
    Posts
    535
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You could
    PHP Code:
    extract($_POST);
    extract($_GET);
    extract($_COOKIE);
    extract($_SESSION);
     
    extract($_SERVER);
     
    extract($_FILESEXTR_OVERWRITE); 
    But you're beter off doing what ^ said.

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,642
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Any script that doesn't work with register globals off is a lot less secure than one that works with register globals on. It is not like the code changes that are needed are all that difficult.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.


  •  

    Posting Permissions

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