Go Back   Webmaster Forum > Forum Archives > Cyber-UG Forum Archive
REMOVE the ads below !
 
 
LinkBack Thread Tools
  # 1 (permalink)
Old
Newbie
Posts: 0
Join Date: Mar 2007
iTrader: (0)
current user ip - 05-19-2007

While looking in the PHP predefined variables i found an intersting one: $_ENV["REMOTE_ADDR"]. what this does is it gives the current IP of the person viewing your site. This is quite good if you are making a poll for a intranet where each user has their own username.

Have a look at this and tell me what you think.

PHP Code:
PHP Code:
<?php
$ip 
$_ENV["REMOTE_ADDR"]; //set variable

echo $ip//show the value of the variable

?>
I hope somebody finds it helpful
 


Thread Tools




vBulletin®, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. | SEO by vBSEO | Skin developed by vBStyles.com