title: how to ping ip addresses in php and give results
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8030789/pinging-an-ip-address-using-php-and-echoing-the-result">Pinging an IP address using PHP and echoing the result</a>  </p>
  </blockquote>
  
  
  
  <p>How do you ping an ip addresses in php. and give the the results as if you are on cmd program in windows</p>
  
  <pre><code>&lt;?php
  
    system(‘ping -c 192.168.0.104’); // Ping IP address.&lt;br&gt;
  
     echo “pinged”;&lt;br&gt;
  
  ?&gt;
  </code></pre>