Trying this but it wont work
<?php
// HTTP get function
if (!function_exists(__NAMESPACE__ . '\checkRemoteServerStatus'))
{
function checkRemoteServerStatus($url,$interval,$offset = 0)
{
//$ua = 'Mozilla/5.0 (X11 Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)...