if (!isset($_POST['ip']) || !strlen($_POST['ip'])) return; $hosts = array_map('gethostbyaddr', explode(';', $_POST['ip'])); header('Content-Type: text/plain; charset=utf8'); echo implode(';', $hosts); // reverse-ip.php ends here ?>