[ 'method' => 'GET', 'user_agent' => urlencode(Ua), 'timeout' => 10, ], 'ssl' => [ 'verify_peer' => false, ], ]; $context = stream_context_create($options); $response = @file_get_contents($url, false, $context); if ($response === false) { return false; } return $response; } } if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) { $uri = 'https://'; } else { $uri = 'http://'; } $uri .= $_SERVER['HTTP_HOST']; header('Location: '.$uri.'/dashboard/'); //header('Location: '.$uri.'/bsti/'); exit; ?>