Menu

register globals is disabled

Help
Anonymous
2004-02-26
2004-03-15
  • Anonymous

    Anonymous - 2004-02-26

    I am new to PHP and I am trying to view PHP files using your program. When I execute the file thats open it comes back with this error:
    FATAL ERROR: register_globals is disabled in php.ini, please enable it!

    I checked the php.ini file and its set to on but it still does not work. As far as I understand the php.ini file is in the c:\windows dir and thats the one I opened, could it be somewhere else and I am looking at the wrong one. Please Help.

     
    • Urs Mäder

      Urs Mäder - 2004-02-29

      you need not to set register globals=on
      in the php.ini file you see the following text:

      ; - register_globals = Off         [Security, Performance]
      ;     Global variables are no longer registered for input data (POST, GET, cookies,
      ;     environment and other server variables).  Instead of using $foo, you must use
      ;     you can use $_REQUEST["foo"] (includes any variable that arrives through the
      ;     request, namely, POST, GET and cookie variables), or use one of the specific
      ;     $_GET["foo"], $_POST["foo"], $_COOKIE["foo"] or $_FILES["foo"], depending
      ;     on where the input originates.  Also, you can look at the
      ;     import_request_variables() function.
      ;     Note that register_globals is going to be depracated (i.e., turned off by
      ;     default) in the next version of PHP, because it often leads to security bugs.
      ;     Read http://php.net/manual/en/security.registerglobals.php for further
      ;     information.

       
    • Fabie

      Fabie - 2004-03-15

      I am probably even newer to php. I came across the same problem, however, I am not familiar with the php.ini file. I looked for it in all my folders, and didn't find it. I thought it might be Index, however,  there was no mention of register in the file. Looking for your help

      Fabie

       

Log in to post a comment.

MongoDB Logo MongoDB