why you mean by getenv() funtion ??

Started on the old forum in May 2011 · view the original in the archive · old links redirect here

3 replies · 739 views · started 15 years ago · 1 min read

3 participants
CuteAmit Junior · 35 posts #1

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

khan Lead · 681 posts #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.

CreativityKills Lead · 833 posts #4

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

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close