why you mean by getenv() funtion ??

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • why you mean by getenv() funtion ??

    Hello dear,

    i have found many examples to detect ip of a user. in php.net they used getenv($_SERVER['HTTP_REMOTE_ADDR']); to detect ip.


    i don't know why we use getenv() function ???


    anyone explain it ??

  • #2
    Actually its getenv('HTTP_USER_AGENT') is just a way of getting apache environment settions and values.

    Comment


    • #3
      Basically getenv — Gets the value of an environment variable

      when you put something into getenv to get the value like getenv('blablabla'), then its output will be the actual value of an apache environment variable.

      Comment


      • #4
        thats what i said o.O

        Comment

        Working...
        X