Code:
$register_globals = (bool) ini_get('register_gobals');
Don't code for register_globals, even conditionally. $_GET, $_POST, and $_REQUEST still work even if register_globals is enabled, and you should use them instead.
Code:
$host= preg_replace ("/[^A-Za-z0-9.-]/","",$host);
$count= preg_replace ("/[^0-9.]/","",$count);
Instead of this, try shell_escape().
Code:
system("killall ping");// kill all ping processes in case there are some stalled ones or use echo 'ping' to execute ping without shell
Pointless. If this code is reached, the ping has already ended
Bookmarks