PHP warning

file_get_contents(http://www.tempusopen.fi/index.php?r=swimmer/distance&id=31120&event=41): failed to open stream: HTTP request failed! HTTP/1.1 404 CHttpException

/var/www/releases/1687873742/protected/controllers/CompetitionController.php(212)

200         if (count($searchParams) > 0)
201         {
202             if (strpos($url, '?') > 0)
203             {
204                 $url .= '&' . http_build_query($searchParams);
205             }
206             else
207             {
208                 $url .= '?' . http_build_query($searchParams);
209             }
210         }
211 
212         $html = file_get_contents($url);
213         $stylesheet = file_get_contents(Yii::getPathOfAlias('webroot.css') . '/pdf.css');
214         
215         // Output the PDF
216         $mPDF1 = Yii::app()->ePdf->mpdf('utf-8', 'A4');
217         $mPDF1->setBasePath($url);
218         // $mPDF1->WriteHTML($_GET[result_time], 2);
219         $mPDF1->WriteHTML($stylesheet, 1);
220         $mPDF1->WriteHTML($html, 2);
221         $mPDF1->Output();
222     }
223 
224     public function actionPdfClean($url)

Stack Trace

#0
+
 /var/www/releases/1687873742/protected/controllers/CompetitionController.php(212): file_get_contents("http://www.tempusopen.fi/index.php?r=swimmer/distance&id=31120&e...")
207             {
208                 $url .= '?' . http_build_query($searchParams);
209             }
210         }
211 
212         $html = file_get_contents($url);
213         $stylesheet = file_get_contents(Yii::getPathOfAlias('webroot.css') . '/pdf.css');
214         
215         // Output the PDF
216         $mPDF1 = Yii::app()->ePdf->mpdf('utf-8', 'A4');
217         $mPDF1->setBasePath($url);
#15
+
 /var/www/releases/1687873742/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 //defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-29 14:01:30 Apache/2.4.25 (Debian) Yii Framework/1.1.10