0

これは私のエラーの印刷画面です。クリックしてください。

ここで 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 ヘルパーDOWNLOADを使用しています...

私はすでにphp.ini の memory_limitを 2048M から4096Mに更新していますが、何も起こらないようです。私のコードでは、それも機能しませんでした...

誰かがこれを修正する方法を教えてもらえますか...ありがとう

4

0 に答える 0