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 ??
For Latest Technology Tips & Tricks Click Here
Started on the old forum in May 2011 · view the original in the archive · old links redirect here
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 ??
For Latest Technology Tips & Tricks Click Here
Actually its getenv('HTTP_USER_AGENT') is just a way of getting apache environment settions and values.
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.
khan wrote: 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.
thats what i said o.O