this is the print screen of my error, please click..
我在这里使用codeigniter, 这是我的控制员...
class Copy extends CI_Controller {
public function index()
{
redirect('home');
ini_set("memory_limit", "4096M");
}
public function getFile($file = '')
{
$this->load->model('home_model');
$files = $this->home_model->getFile($file);
$this->load->library('zip');
$this->load->helper('download');
if($files !== FALSE)
{
foreach ($files->result() as $row)
{
$data = file_get_contents(base_url().$row->File_Path); // Read the file's contents
$name = substr($row->File_Path, 26);
$name2 = str_replace("_", " ", $name);
force_download($name2, $data);
}
}
}
}
我正在使用codeigniter helper DOWNLOAD 来下载服务器中的文件......
我已经在 php.ini 2048M TO 4096M 中更新 memory_limit ,似乎没有发生,我试图把 ini_set('memory_limit',' 4096M'); 在我的代码中,它也不起作用......
有人可以告诉我如何解决这个问题...谢谢你