2:34 AM

Using PHP to show user's ip

posted under by FR3@K | Edit This
There are 2 ways that I know of, 1 is garunteed to work and the other is a maybe.


(Garunteed) :-
$REMOTE_ADDR;

(Maybe) :-
$_SERVER['REMOTE_ADDR'];


To show a user's IP simply add this code into any existing php document:QUOTE (show IP)

<?

echo "Your IP is: $REMOTE_ADDR";

?>



NOTE :- The PHP is must be configured right for this to work properly all the time.

0 comments

Make A Comment
top