different ways of getting the IP Address
Posted
by Sachindra
on Stack Overflow
See other posts from Stack Overflow
or by Sachindra
Published on 2010-04-06T11:04:42Z
Indexed on
2010/04/06
11:13 UTC
Read the original article
Hit count: 160
php
I was actually going through the question 1636644 .. and got confused with this
" The getenv() function access to any environment variable to get the related value! "
Also ..
" It would probably be better to use $_SERVER['REMOTE_ADDR']; to prevent incompatibilities between servers. "
what kind of compatibility issue can this be ??
Lastly, it says $_SERVER is an array with many elements but I find only the IP Address there .. does this array store anything else too???
apologies for all these questions packed in one .. this is bcoz these are all related ..
© Stack Overflow or respective owner