Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD
- HTML 4.01//EN" "http://www.w3.org/ TR/html4/strict.dtd ">
- <html>
- <head>
- <style type="text/css">
- pre{
- margin-top:0px; margin-bottom:0px;
- }
- </style>
- </head>
- <body>
- <form action="<? echo $_SERVER['PHP_SELF'] ; ?>" method="Post">
- <input type="text"
- name="ipAddress">
- <input type="submit" value="Ping">
- </form>
- <? if(isset($_POST['ipAddress'])){
- echo "<pre>";
- system("(ping ".$_POST['ipAddress'].")2>&1");
- echo "</pre>";
- } ?>
- </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement