asmith Posted January 8, 2008 Share Posted January 8, 2008 what is the different between $_SERVER['REMOTE_ADDR'] and getenv(REMOTE_ADDR) ? i can't find it on php.net, it says you can use this or that . which is better to use ? (not sure , but i think i've read somewhere superglobals is going to be removed in the future ? ?) Link to comment https://forums.phpfreaks.com/topic/84981-solved-getenv-and-superglobals/ Share on other sites More sharing options...
Lumio Posted January 8, 2008 Share Posted January 8, 2008 I think both are pretty the same. I prefer $_SERVER. Link to comment https://forums.phpfreaks.com/topic/84981-solved-getenv-and-superglobals/#findComment-433371 Share on other sites More sharing options...
GingerRobot Posted January 8, 2008 Share Posted January 8, 2008 Yes, they are, for all intents and purposes, the same. I think most people have switched over to using the superglobals though. And i think you probably misread. Link to comment https://forums.phpfreaks.com/topic/84981-solved-getenv-and-superglobals/#findComment-433377 Share on other sites More sharing options...
asmith Posted January 8, 2008 Author Share Posted January 8, 2008 ok , thanks guys . so i'll just pick one of them. Link to comment https://forums.phpfreaks.com/topic/84981-solved-getenv-and-superglobals/#findComment-433383 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.