GetPlayerHost - [L3th4l] - 15.08.2011
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:
PHP код:
<?php
$userip = $_GET['IP'];
$hostname = gethostbyaddr($userip);
echo $hostname;
?>
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
Re: GetPlayerHost -
DeadAhead - 15.08.2011
well, It is extremely ...simple...compared to other scripts.
Anyone who knows a bit of PHP and PAWN can do that.
But its still very useful.
Good job.
((don't get me wrong that I don't like the idea and things, but this is more of a useful snippet. You should post that there

))
Re: GetPlayerHost -
Darnell - 15.08.2011
Good job.
Re: GetPlayerHost -
Raimis_R - 15.08.2011
I have entered my ip
http://yu-ki-ko.com/fsns/Host.php?IP=MY IP
And i have output same ip adress as entered. I fink your script wont work
Re: GetPlayerHost -
dud - 15.08.2011
i have a problem
Код:
Can't send your request. Response_Code: 3
Re: GetPlayerHost - [L3th4l] - 15.08.2011
Response code 3 means that it can't connect.
@ Raimis_R: It returns the unmodified IP ( The one you entered ) when it fails.
I suggest y'all upload the .php onto another server. Mine's not always reliable
Re: GetPlayerHost -
DRIFT_HUNTER - 15.08.2011
It returned me adsl-109-228-l1937.crnagora.net witch is correct so its working!
Thx nice job
Also can we get PHP script?
Re: GetPlayerHost - [L3th4l] - 15.08.2011
PHP код:
<?php
$userip = $_GET['IP'];
$hostname = gethostbyaddr($userip);
echo $hostname;
?>
That's the only thing required
@ Still trying to find a solution for those that DNS can't be found. So its returning their IP
Re: GetPlayerHost -
TouR - 15.08.2011
Very nice worked for me

Thank you for releasing this
Re: GetPlayerHost -
Gigi-The-Beast - 15.08.2011
nice script!
OFF:
Quote:
Originally Posted by DRIFT_HUNTER
It returned me adsl-109-228-l1937.crnagora.net witch is correct so its working!
Thx nice job
Also can we get PHP script?
|
okle si crnogorac?

odg na pm