check_connection
check_connection($url,$timeout,$use_cache=false,$num=-1); - check the connection to the specified page
The function accepts parameters as input:br>
$referer page, a connection with which it is necessary to check$timeout – time for which the transition$use_cache – whether to use the cache during transport$num – number of transition attempts
After the function returns the result of their work in the script :
true – jump to the page for the time specified paramtere was successfully
false – connect and go to page failed