Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
<?php
$var = file("http://api.hostip.info/get_html.php?ip=".$_SERVER["REMOTE_ADDR"]);
$ip = $_SERVER["REMOTE_ADDR"];
$img = "http://api.hostip.info/flag.php?ip=$ip";
echo "<img src='" . $img . "' width='' height='' alt=''>";
?>
<form method="POST">
<input type="text" name="ip">
<input type="submit">
</form>
<?php
if($_POST['ip'])
{
$ip = $_POST['ip'];
$file = file("http://api.hostip.info/get_html.php?ip=$ip");
$izli6no = array('(', ')');
$zam = "";
$files = str_replace($izli6no, $zam, $file[0]);
$files = explode(" ", $files);
$izli6no1 = array('(', ')');
$zam1 = "";
$files1 = str_replace($izli6no1, $zam1, $file[1]);
$files1 = explode(" ", $files1);
echo "IP ".$ip." e ot:<br>";
echo "Darjava: ".$files[1];
echo "<br>";
echo "Grad: ".$files1[1];
}
?>