Jump to content

dexterbb

New Members
  • Posts

    2
  • Joined

  • Last visited

dexterbb's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Even pinging the host for the shell/cmd and seeing that he is inaccessible, the above function tells me that is accessible. Could someone give me a light?
  2. Hey guys, I'm trying to show a few ips are online or not, but the return is always as online. The function I'm trying to use is the one below: <?php function ping($host) { $conectado = fsockopen($host, 80, $numeroDoErro, $stringDoErro, 255); if ($conectado) { return true; }else{ return false; fclose($conectado); } } ?> The variable $host receives an ip like this: 172.16.10.50 I'm calling the function like this: $ping = ping($dados[ip]); I need some extra configuration to work properly?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.