1
I was looking for this solution, where I can browse the server and show the folders and files, without using BD.
this sounds interesting, but how can I show all the files without showing the first 2 (.) (..)

This is what happens to me, what I want is to show me the 5 videos and hide the first 2.
it is possible to do?
I’m using the following code
<?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();
?>
						
worked perfectly in windows environment, tested on linux and appeared 1 register '.DS_S'' other '._. DS_S'
– Salgado
@Salagdo Mac OSX generates these files, in Finder they are invisible, but PHP can see them, I will edit the code and I warn you.
– Guilherme Nascimento
@Salagdo ready, edited response, modified the first code and added an example with
globwhich facilitates much more :D– Guilherme Nascimento