I just upgraded my web server to Centos 7 and now print_r($_REQUEST); no longer works

Discussion in 'PHP' started by pmf123, Apr 1, 2017.

  1. #1
    I just upgraded my web server to Centos 7 and now this no longer works:

    print_r($_REQUEST);

    But this does

    echo($_REQUEST["name"]);

    it appears it won't let you know the values of _REQUEST without knowing the name of the variable.

    Is this a setting i need to change in PHP.INI or something?

    This worked fine with Centos 5.

    Thanks
     
    pmf123, Apr 1, 2017 IP
  2. manoaratefy

    manoaratefy Member

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    31
    #2
    Hello! I think that there is no php.ini directives to activate it. Can you check the PHP log ?
     
    manoaratefy, Apr 15, 2017 IP