View Single Post
Old 03-04-2006, 01:38 PM   · #1
asgsoft
NamePros Regular
 
asgsoft's Avatar
 
Location: At Home
Trader Rating: (36)
Join Date: Sep 2005
Posts: 821
NP$: 990.10 (Donate)
asgsoft is just really niceasgsoft is just really niceasgsoft is just really niceasgsoft is just really niceasgsoft is just really nice
Getting current user's IP address

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
$ip
= $_ENV["REMOTE_ADDR"]; //set variable

echo $ip; //show the value of the variable

?>

I hope somebody finds it helpful.

ASGSOFT


Please register or log-in into NamePros to hide ads
asgsoft is offline   Reply With Quote
Site Sponsors
Click to Watch Instant Video Exdon Buy Flash Arcade Game Script
Advertise your business at NamePros
All times are GMT -7. The time now is 10:24 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.