shamsuljewel Posted July 6, 2007 Share Posted July 6, 2007 hello dears, There are many HTTP environment variables. such as REMOTE_ADDR which show the ip address. but in my program when I use phpinfo() it shows REMOTE_ADDR. But when I write programs such as <?php $address = getenv("REMOTE_ADDR"); echo "$address"; ?> the browser do not shows the ip address. Where is the problem? can anyone tell me where is the problem? Thanks Link to comment https://forums.phpfreaks.com/topic/58670-environment-variables/ Share on other sites More sharing options...
Yesideez Posted July 6, 2007 Share Posted July 6, 2007 $_SERVER['REMOTE_ADDR']; Link to comment https://forums.phpfreaks.com/topic/58670-environment-variables/#findComment-291026 Share on other sites More sharing options...
shamsuljewel Posted July 6, 2007 Author Share Posted July 6, 2007 thanks Yesideez... Link to comment https://forums.phpfreaks.com/topic/58670-environment-variables/#findComment-291032 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.