Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ip = $_POST['ip'];
- $output = shell_exec('ping -c 1 '.$ip);
- echo "<pre>$output</pre>";
- echo $ip;
- ?>
- <html>
- <head>Ping tool </head>
- <body>
- <form method="post">
- <input type="text" name="ip" value="ip"><br>
- <input type="submit" value="submit">
- </form>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement