I was looking for this solution, where I can browse the server and show folders and files, without resorting to DB.
This seems interesting to me, but how can I show all files without the first 2 (.) (..)
Thisiswhathappenstome,whatIwantistoshowmethe5videosandhidethefirst2.
Isitpossibletodoit?
I'musingthefollowingcode
<?php$path="../../../../SAV-Videos/Racing-Division/";
$diretorio = dir($path);
//echo "Lista de Arquivos do diretório '<strong>".$path."</strong>':<br />";
while($arquivo = $diretorio -> read()){
$nom_directorio = substr($arquivo,0,-4);
$extension = substr($arquivo,-3);
echo "<div class='col-md-3 col-sm-6 col-xs-12'>
<div class='info-box'>
<div align='center'>
<div class='demonstrations'>
<video width='100%' height='200' controls='controls' style='margin-top: -20px;'>
<source src='../../../../SAV-Videos/Racing-Division/$arquivo' type='video/mp4'>
<object data='' width='100%' height='200'>
<embed width='100% height='200' src='../../../../SAV-Videos/Racing-Division/$arquivo'>
</object>
</video>
</div>
<br/>
<div class='info-box-text' style='padding: 5px;'><b>".$nom_directorio."</b></div>
<span class='info-box-text'>
<b>EXTENSION:</b> ".$extension."
</span>
<div style='padding: 10px;'>
<a href='../../../../SAV-Videos/Racing-Division/$arquivo' class='btn btn-default' rel='group' download style='margin-top: 5px;'
title='Télécharger ".$nom_directorio."'>
<i class='fa fa-download'></i>
</a>
<a href='Suprimer_video.php?nome=$arquivo&division=$categorie' class='btn btn-default onClick='return confirma();'>
<i class='fa fa-trash'></i>
</a>
</div>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
</div>
";
}
$diretorio -> close();
?>