Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

check network connection php

$response = null;
system("ping -c 1 google.com", $response);
if($response == 0)
{
    // this means you are connected
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #network #connection #php
ADD COMMENT
Topic
Name
6+9 =