Replacing $HTTP_POST_VARS & $HTTP_GET_VARS

Discussion in 'PHP' started by egdcltd, Sep 19, 2007.

  1. #1
    I've heard that $HTTP_POST_VARS can be/should be replaced with $_POST and $HTTP_GET_VARS can be/should be replaced with $_GET for better compatability with later PHP versions. Unfortunately, I can't seem to find anything about this.

    Does anyone have any links to something explaining this please?
     
    egdcltd, Sep 19, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    There's not much more to find than you already know. The $HTTP_*_VARS variables are deprecated (for PHP versions 4.0.1+) and you should use the others instead.

    What exactly do you need help with?


    http://www.php.net/reserved.variables
     
    nico_swd, Sep 19, 2007 IP
  3. egdcltd

    egdcltd Peon

    Messages:
    691
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Pretty much that, thanks. Wanted confirmation and explanation of the difference before I started replacing everything.
     
    egdcltd, Sep 19, 2007 IP