View Full Version : Cgi or Php script to show IP ?
iLLuSioN
December 2nd, 2001, 12:31
Anybody know a script where i can show the user/visitor his ip ??
gyrbo
December 2nd, 2001, 12:53
<?php
echo $REMOTE_ADDR;
?>
niv
December 2nd, 2001, 13:06
And in perl:
print $ENV{"REMOTE_ADDR"}
iLLuSioN
December 2nd, 2001, 14:03
thx ;) gonna try it out :)
iLLuSioN
December 3rd, 2001, 10:32
is there one so i allso can show the hostname ? ;)
Dusty
December 3rd, 2001, 14:25
print $ENV{'remote_host'};
iLLuSioN
December 7th, 2001, 06:06
is there a php code for that get hostname to ?? :)
gyrbo
December 7th, 2001, 10:19
print env('REMOTE_HOST');
iLLuSioN
December 7th, 2001, 11:46
dosent work :( any other codes ?? :)
niv
December 7th, 2001, 18:54
Um, you don't have to keep asking us...there's something called a manual y'know. RTFM! ;)
http://www.php.net/manual/en/
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.