different ways of getting the IP Address
- by Sachindra
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 ..