Does anyone know a script to get a user's ip address and simply back to them on a webpage?
Thanks,
cokacola650in php it is easy
echo $_SERVER['REMOTE_ADDR'];Originally posted by cokacola650
Does anyone know a script to get a user's ip address and simply back to them on a webpage?
Thanks,
cokacola650
$ip = $_SERVER["REMOTE_ADDR"]; //get ip
echo $ip; //display ipthanks guys.
cokacola650Originally posted by scoutt
in php it is easy
echo $_SERVER['REMOTE_ADDR'];
lol...beat me by 2 minutes scoutt can anybody tell me what the code is to count the number of online users?
Thanks,
cokacola650uhh that is in more detail. you have to have them go into a database so you can keep track then set a time so you don't count people that are not there. also you have to have the time updated on every page so it will keep track.
again a lot more code so it may be best to find a already pre-made script at <!-- w --><a class="postlink" href="http://www.hotscripts.comdarn">www.hotscripts.comdarn</a><!-- w -->! i was hoping for one of those 2-3 lines of code that would tell me. o well. ill go googling.
thanks,
cokacola650
Thanks,
cokacola650in php it is easy
echo $_SERVER['REMOTE_ADDR'];Originally posted by cokacola650
Does anyone know a script to get a user's ip address and simply back to them on a webpage?
Thanks,
cokacola650
$ip = $_SERVER["REMOTE_ADDR"]; //get ip
echo $ip; //display ipthanks guys.
cokacola650Originally posted by scoutt
in php it is easy
echo $_SERVER['REMOTE_ADDR'];
lol...beat me by 2 minutes scoutt can anybody tell me what the code is to count the number of online users?
Thanks,
cokacola650uhh that is in more detail. you have to have them go into a database so you can keep track then set a time so you don't count people that are not there. also you have to have the time updated on every page so it will keep track.
again a lot more code so it may be best to find a already pre-made script at <!-- w --><a class="postlink" href="http://www.hotscripts.comdarn">www.hotscripts.comdarn</a><!-- w -->! i was hoping for one of those 2-3 lines of code that would tell me. o well. ill go googling.
thanks,
cokacola650