$_env variables

Discussion in 'PHP' started by phpsoft, Aug 25, 2010.

  1. #1
    what is the use of $_ENV?. please give me the example for this variable.

    Thanks
     
    phpsoft, Aug 25, 2010 IP
  2. andymoo

    andymoo Peon

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Has your surfing IP been banned by Google, do you not have search engines where you are?
     
    andymoo, Aug 25, 2010 IP
  3. Wolf Security

    Wolf Security Peon

    Messages:
    78
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It just gives you access to the environemt variables - USER, HOSTNAME, COMPUTERNAME, etc. ;)
     
    Wolf Security, Aug 25, 2010 IP
  4. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #4
    Its a super global variable containing various server information, you can also use $_SERVER as an alternative (in most cases)
     
    danx10, Aug 25, 2010 IP
  5. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0