• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to display a files?!

#1
[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

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

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

foreach ( $linz as $lin ) {

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

}

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.