PHP Error

readfile(/var/www/NOWE_PODLOGILODZ/): failed to open stream: No such file or directory

/var/www/EXTERNAL/NOWE_PODLOGILODZ/protected/modules/Main/controllers/DownloadController.php(21)

09             $file = $mysanitizer->sanitizeGet($_GET['file']);
10             $Download = new Download;
11             $file_info = $Download->Get_Article_File($file);
12             
13             header_remove();
14             header('Content-Disposition: attachment;filename="' . $file_info['name'] . $file_info['extension'].'"');
15             header("Content-Type: ".$file_info['content_type']);
16             header('Content-Transfer-Encoding: binary');
17             
18             $path_to_file = "/var/www/NOWE_PODLOGILODZ/" . $file_info['path'];
19             //echo $path_to_file;
20             //header('Content-Length: ' . filesize($path_to_file));
21             readfile($path_to_file);
22             die();
23         }
24 
25 
26     }
27  public function actionProduct() {
28         if (isset($_GET['file'])) {
29 
30             $mysanitizer = new MySanitize(NULL);
31             $file = $mysanitizer->sanitizeGet($_GET['file']);
32             $Download = new Download;
33             $file_info = $Download->Get_Article_File_Product($file);

Stack Trace

#0
+
 /var/www/EXTERNAL/NOWE_PODLOGILODZ/protected/modules/Main/controllers/DownloadController.php(21): readfile("/var/www/NOWE_PODLOGILODZ/")
16             header('Content-Transfer-Encoding: binary');
17             
18             $path_to_file = "/var/www/NOWE_PODLOGILODZ/" . $file_info['path'];
19             //echo $path_to_file;
20             //header('Content-Length: ' . filesize($path_to_file));
21             readfile($path_to_file);
22             die();
23         }
24 
25 
26     }
#8
+
 /var/www/EXTERNAL/NOWE_PODLOGILODZ/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',1);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2024-03-28 12:47:28 Apache/2.4.18 (Ubuntu) Yii Framework/1.1.8