15.08.2011, 09:36
Hi.
This is a pretty SIMPLE script to show how to get a player's host using PHP + HTTP.
I'm not sure if there are bugs or if the host ain't showing correctly, as I was the only one to test it with.
Download the script here: Pastebin
You don't have to host the .php file, it's being hosted on my site. Though if you want to, here's the code:
See details in the script on how to change the URL for the hosted .php file.
Anyways, enjoy.
PS: Test it - yu-ki-ko.com/fsns/Host.php?IP=ENTER_YOUR_IP
PS-2: Whitetiger sucks
This is a pretty SIMPLE script to show how to get a player's host using PHP + HTTP.
I'm not sure if there are bugs or if the host ain't showing correctly, as I was the only one to test it with.
Download the script here: Pastebin
You don't have to host the .php file, it's being hosted on my site. Though if you want to, here's the code:
PHP код:
<?php
$userip = $_GET['IP'];
$hostname = gethostbyaddr($userip);
echo $hostname;
?>
Anyways, enjoy.

PS: Test it - yu-ki-ko.com/fsns/Host.php?IP=ENTER_YOUR_IP
PS-2: Whitetiger sucks