title: Get PHP to show PING RESPONSE
body: <p>I am having issues getting my PHP script to display the response time to the IP of the visitor displaying in ms. I have already seen this: <a href="https://stackoverflow.com/questions/7555846/php-get-server-to-ping-a-visitors-ip-and-return-the-ping-in-ms">PHP - get server to ping a visitors IP and return the ping in ms</a></p>
  
  <p>When I try to do some of the same code all mine outputs is </p>
  
  <p>"8.8.8.8 is alive" </p>
  
  <p>I'd actually like it to return the average round trip time or just the response time in milliseconds. </p>
  
  <p>Here is my code that just outputs the above:</p>
  
  <pre><code>$pinginfo = array();
  exec("/usr/sbin/ping -v -c 1 8.8.8.8", $pinginfo);
  var_dump($pinginfo);
  </code></pre>