Quickly explain, but I can't get it to work:
In this simple code, the force_download function simply does not produce any output.
$this->load->helper('download'); $data = file_get_contents("modulos/".$filename); // Read the file contents force_download($filename, $data); echo $data."/".$filename;
Here I just get a white screen, but the contents of the file are displayed (well, you know, weird codified content :) I think itβs quite simple, I just want the file to load without any other effect, Iβm doing something wrong ?
php codeigniter download
Luis javier garrido
source share