Hello, how can I check if an IP-Adress is already exists?
<? $phpc = fsockopen("ipaddr", 80, &$errno, &$errstr, 30); if(!$phpc) { echo "<b>ip <font color=red>down!!</font></b>\n"; } else { echo("<a href=http://ipaddr>ipaddr</a>"); }
?> try this..it mite work
but it won't.
This only checks if there is a service responding on port 80. DNS servers will never respond on port 80.
If you want to know if the server is reachable, use PING.
Hello, thank you for the answer.
But i don't want to check a Server. I want to check the User.
If the user connect to out Internet-Page i get the ip with $REMOTE_ADDR
After some Minutes i want to check
So you want to check if some user is visiting your website?
If the user is behind a firewall, they may not even be pingable. Using sessions that time out is the only way I can see of deciding if someone is online.
I posted that before Lutze mentioned he was talking about users.
theres no way of doing this ip-checking if user is
i) behind a firewall (almost all corporate/ business users)
ii) using a proxy server (most people using freeserve in uk - dont know about other countries)
sorry to be a spoiler 🙁