PHP warning

readfile(): Filename cannot be empty

/home/efxfilms/public_html/protected/controllers/VideoController.php(154)

142         } 
143         $filename = ($title.'_'.time()).'.'.$ext;
144         header('Content-Description: File Transfer'); 
145         header('Content-Type: '.$mime); 
146         header('Content-Disposition: attachment; filename='.basename($filename)); 
147         header('Content-Transfer-Encoding: binary'); 
148         header('Expires: 0'); 
149         header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); 
150         header('Pragma: public'); 
151         //header('Content-Length: ' . filesize($file)); 
152         ob_clean(); 
153         flush(); 
154         readfile($url);
155         //file_get_contents($url);
156     }
157     
158 }
159 ?>

Stack Trace

#0
+
 /home/efxfilms/public_html/protected/controllers/VideoController.php(154): readfile("")
149         header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); 
150         header('Pragma: public'); 
151         //header('Content-Length: ' . filesize($file)); 
152         ob_clean(); 
153         flush(); 
154         readfile($url);
155         //file_get_contents($url);
156     }
157     
158 }
159 ?>
#1
+
 /home/efxfilms/public_html/protected/controllers/VideoController.php(88): VideoController->force_download("", false, "EFXFilms_4fbf1f0e650927c1ae1134dbc0b47eec_")
83             echo json_encode($json);
84         }else{
85             $url = base64_decode(Jii::param('url'));
86             $title = 'EFXFilms_'.md5(time()).'_';
87             $ext = Jii::param('ext');
88             $this->force_download($url,$ext,$title);
89         }
90     }
91     
92     private function force_download($url,$ext,$title) {
93         switch($ext) { 
#9
+
 /home/efxfilms/public_html/index.php(16): CApplication->run()
11 defined('YII_DEBUG') or define('YII_DEBUG',true);
12 // specify how many levels of call stack should be shown in each log message
13 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
14 
15 require_once($yii);
16 Yii::createWebApplication($config)->run();
17 ob_flush();
18 ?>
2024-03-19 09:08:12 Apache Yii Framework/1.1.10