Code: Select all
<?php
if (isset($_POST[ip]))
{
$qq = $_POST[ip];
$lari = "ping " . $qq ;
$aa = exec($lari);
echo "IP " . $qq . " is exist";
}
else
{
?>
<html>
<head>
<title>For testing Only</title>
<h1>Pingging IP</h1>
</head>
<body>
Please enter the IP
<form name="ip" method="post" action="index.php">
<input type="text" name="ip">
<input type="submit" value="Enter">
</form>
</body>
</html>
<? } ?>Thanks advanced....