ho provato ad inserire i codici che hai posto però on funziona lo stesso mi da un errore con scritto " Image not found: '.$path . $file . ' " codice:
codice:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Galleria Classic Theme</title> <style> /* Demo styles */ html,body{background:#222;margin:0;} body{border-top:4px solid #000;} .content{color:#777;font:12px/1.4 "helvetica neue",arial,sans-serif;width:620px;margin:20px auto;} h1{font-size:12px;font-weight:normal;color:#ddd;margin:0;} p{margin:0 0 20px} a {color:#22BCB9;text-decoration:none;} .cred{margin-top:20px;font-size:11px;} /* This rule is read by Galleria to define the gallery height: */ #galleria{height:320px} </style>  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>  <script src="galleria-1.2.9.min.js"></script> </head> <body> <div class="content"> <h1>Galleria Classic Theme</h1> 

Demonstrating a basic gallery example.</p>  <div id="galleria"> <?php $path = "file-galleria/"; if ($handle = opendir($path)) { $files = array(); while (false !== ($file = readdir($handle))) { if ($file != '.' && $file != '..') { $files[]=$file; print '[img]'.$path . $file . '[/img]',"\n"; print '[img]'.$path . $file . ' [/img]' } } ?> </div> <p class="cred">Made by Galleria.</p> </div> <script> // Load the classic theme Galleria.loadTheme('galleria.classic.min.js'); // Initialize Galleria Galleria.run('#galleria'); </script> </body> </html>