CodeIgniter Forums
How to display a files?! - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: How to display a files?! (/thread-6502.html)



How to display a files?! - El Forum - 03-01-2008

[eluser]Tetek[/eluser]
Hi all.
I have a problem. I don't know how to display a files from the server, and make it downloadable.(on the page)
Do you know how to do it?
Plz for help.
Greetz, Tetek


How to display a files?! - El Forum - 03-01-2008

[eluser]autoreverse[/eluser]
U can haz filz:

Code:
$linz = file( 'path/to/fil');

foreach ( $linz as $lin ) {

    echo htmlspecialchars( $lin ) . '<br />';

}



How to display a files?! - El Forum - 03-02-2008

[eluser]Doosje[/eluser]
Code:
$map = directory_map('./images/');
var_dump($map);
It's somewhere in the CI manual