📜  检查网络连接php代码示例

📅  最后修改于: 2022-03-11 14:54:45.240000             🧑  作者: Mango

代码示例1
$response = null;
system("ping -c 1 google.com", $response);
if($response == 0)
{
    // this means you are connected
}