List files in directory with ajax

0

Is it possible to list files in a directory with ajax and php? I did a search but I do not find this combination!

$path = "/home/projetoc/public_html/filemanagerarquiv/files/";
$diretorio = dir($path);    
echo "Lista de Arquivos do diretório '<strong>".$path."</strong>':<br />";    
while($arquivo = $diretorio -> read()){
  echo "<a href='".$path.$arquivo."'>".$arquivo."</a><br />";
}
$diretorio -> close();
    
asked by anonymous 15.09.2016 / 15:25

0 answers