PHP Error

file_get_contents(http://content.stargame.solutions/api/content/get/212/ru): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

/var/www/solutions/protected/controllers/GameController.php(24)

12     public function actionGameList() {
13 
14 
15         $this->render('list', array());
16     }
17 
18     public function actionGameone()   {
19         $id = $this->p('id');
20         
21        if  (!empty($id))
22             {
23             $lang= Yii::app()->language;
24             $content = file_get_contents("http://content.stargame.solutions/api/content/get/".$id."/".$lang);
25         //    $content = file_get_contents("http://local.content/api/content/get/".$id."/".$lang);
26     
27             if (empty($content))
28                 { 
29                  $game = Games::model()->findByAttributes(array('api_id' => $id));
30             
31                 $content = null;
32                if(empty($game)){
33                $content = $content = SystemService::getContent('in_develop');
34               }
35                 }
36             else

Stack Trace

#0
+
 /var/www/solutions/protected/controllers/GameController.php(24): file_get_contents("http://content.stargame.solutions/api/content/get/212/ru")
19         $id = $this->p('id');
20         
21        if  (!empty($id))
22             {
23             $lang= Yii::app()->language;
24             $content = file_get_contents("http://content.stargame.solutions/api/content/get/".$id."/".$lang);
25         //    $content = file_get_contents("http://local.content/api/content/get/".$id."/".$lang);
26     
27             if (empty($content))
28                 { 
29                  $game = Games::model()->findByAttributes(array('api_id' => $id));
#8
+
 /var/www/solutions/index.php(23): CApplication->run()
18 defined('YII_DEBUG') or define('YII_DEBUG',true);
19 // specify how many levels of call stack should be shown in each log message
20 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
21 
22 require_once($yii);
23 Yii::createWebApplication($config)->run();
24 
25 ?>
2024-03-28 17:43:36 Apache/2.4.38 (Ubuntu) Yii Framework/1.1.8