check_ping_site
check_ping_site($site); - ping the specified site
The function accepts parameters as input:
$site – the site to be pinged
After testing, the function returns the result of its work to the script :
true – there is a ping to the site
false – there is no ping to the site