PHP warning

file_get_contents(https://mz.adhocfun.com/api/getGameServers): failed to open stream: Connection refused

/var/www/html/www.mplus.fun/app/components/MUtils.php(168)

156         return $response;
157     }
158 
159     public static function SendRequestFile($url, $params) {
160         $context = stream_context_create(array(
161             'http' => array(
162               'method' => 'POST',
163               'content' => http_build_query($params),
164               'timeout' => 10,
165               'ignore_errors' => true
166             )
167           ));
168           $result = file_get_contents($url);
169         //   Yii::log(var_export($result, true), 'info');
170           return $result;
171     }
172     
173     public static function appendParamToUrl($url,$param){
174         $parts = parse_url($url);
175 
176         $scheme   = @$parts['scheme']; 
177         $host     = @$parts['host']; 
178         $port     = @$parts['port']; 
179         $user     = @$parts['user']; 
180         $pass     = @$parts['pass']; 

Stack Trace

#0
+
 /var/www/html/www.mplus.fun/app/components/MUtils.php(168): file_get_contents("https://mz.adhocfun.com/api/getGameServers")
163               'content' => http_build_query($params),
164               'timeout' => 10,
165               'ignore_errors' => true
166             )
167           ));
168           $result = file_get_contents($url);
169         //   Yii::log(var_export($result, true), 'info');
170           return $result;
171     }
172     
173     public static function appendParamToUrl($url,$param){
#1
+
 /var/www/html/www.mplus.fun/app/components/MGame/MGame_Web.php(36): MUtils::SendRequestFile("https://mz.adhocfun.com/api/getGameServers", array("query" => ""))
31             $url = http_build_url($url, $parts);
32             //request
33             $response = null;
34             
35             // MGame::logfileRequest("calling game api: $url","info");
36             $response = MUtils::SendRequestFile($url, $parts);
37             // MGame::logfileRequest("response: $response","info");            
38             if(!isset($response)){
39                 throw new Exception(__METHOD__.":response empty");
40             }
41             $result = $this->_requestWebGame_handleResponse($response);
#2
+
 /var/www/html/www.mplus.fun/app/components/MGame/MGame_Web.php(121): MGame_Web->_requestWebGame_makeRequest("https://<gamecode>.adhocfun.com/api/getGameServers", array())
116         return $result;    
117     }
118     
119     public function requestGameServers(){
120         $url = static::$_url_getGameServers;
121         $result = $this->_requestWebGame_makeRequest($url, array());
122         return $result;    
123     }
124     
125     public function requestUserRole($user, $server, $options = null){
126         if(!isset($user, $server)){
2024-03-29 04:20:25 nginx Yii Framework/1.1.10