PHP warning

file_get_contents(http://vimeo.com/api/oembed.xml?url=https%3A%2F%2Fvimeo.com%2F79967929&amp;maxwidth=600) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

/home/u0306176/public_html/protected/modules/video/controllers/front/DefaultController.php(101)

089         if(strpos($url,'vimeo')!==false)
090         {
091             return 'vimeo';
092         }
093         if(strpos($url,'youtube')!== false)
094             return 'youtube';
095 
096         return 'normal';
097     }
098 
099     public function player_vimeo($url)
100     {
101         $data =  file_get_contents('http://vimeo.com/api/oembed.xml?url='.urlencode($url).'&maxwidth=600');
102 
103         preg_match('#<html>(.*?)</html>#si',$data,$m);
104 
105         return htmlspecialchars_decode($m[1]);
106     }
107 
108     //$url = http://www.youtube.com/watch?v=a-y_cTAaj8Q
109     public function player_youtube($url)
110     {
111         $parts = parse_url($url);
112         parse_str($parts['query'],$parts);
113 

Stack Trace

#0
+
 /home/u0306176/public_html/protected/modules/video/controllers/front/DefaultController.php(101): file_get_contents("http://vimeo.com/api/oembed.xml?url=https%3A%2F%2Fvimeo.com%2F79...")
096         return 'normal';
097     }
098 
099     public function player_vimeo($url)
100     {
101         $data =  file_get_contents('http://vimeo.com/api/oembed.xml?url='.urlencode($url).'&maxwidth=600');
102 
103         preg_match('#<html>(.*?)</html>#si',$data,$m);
104 
105         return htmlspecialchars_decode($m[1]);
106     }
#1
+
 /home/u0306176/public_html/protected/modules/video/controllers/front/DefaultController.php(79): DefaultController->player_vimeo("https://vimeo.com/79967929")
74         $video = Video::model()->findByAttributes(array('slug'=>$id));
75 
76 
77         $funcname = 'player_'.$this->detectProvider($video->video);
78 
79         $player = $this->$funcname($video->video);
80         $this->pageTitle = $video->title;
81         $this->leftMenu = $this->provideSubmenu();
82         $this->render('show',array('video'=>$video,'player'=>$player));
83 
84 
#11
+
 /home/u0306176/public_html/protected/components/WebApplicationEndBehavior.php(32): CApplication->run()
27         // Attach the changeModulePaths event handler
28         // and raise it.
29         $this->onModuleCreate = array($this, 'changeModulePaths');
30         $this->onModuleCreate(new CEvent($this->owner));
31 
32         $this->owner->run(); // Run application.
33     }
34 
35     // This event should be raised when CWebApplication
36     // or CWebModule instances are being initialized.
37     public function onModuleCreate($event)
2024-03-29 16:17:12 LiteSpeed Yii Framework/1.1.13