My Problem is that I want to log the host that the person is on, but by using
gethostbyaddr($_SERVER['REMOTE_ADDR'])
I get the IP Address with -'s instead of .'s at the beggining of the host name. I tried to change that by doing an eregi_replace on the ip address making it change the .'s to -'s then another eregi_replace to strip the host name of the ip address (with -'s)
It didn't work though, and so I done the following test to see what the problem was
eregi_replace(".","-",$_SERVER['REMOTE_ADDR'])
What I got was just a bunch of -'s, I assume that the . is some sort of standard character for everything and that is why it changed every character in the ip address to a - but i'm not sure, so if anyone knows why it does it/the solution to it, then i'd be gratefull