• Admin [FOUNDER] ♥ PRO |
(03.01.2019 / 20:17) | TOP |
PHP CODE :
<?php
$currentDir = getcwd();
$it = new RecursiveDirectoryIterator(“ul/images/”);
$display = Array ( ‘jpg’, ‘png’ );
foreach(new RecursiveIteratorIterator($it) as $file)
{
$quach= explode(‘.’, $file);
if (in_array(strtolower(array_pop($quach)), $display))
echo “<img src=$file </img> <br/>”;
}
?>
///////////////////////////////////////////////////////////////
<?php
$path = realpath(‘uploads/’);
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)) as $filename)
{
echo “$filename</br>”;
}
?>
$currentDir = getcwd();
$it = new RecursiveDirectoryIterator(“ul/images/”);
$display = Array ( ‘jpg’, ‘png’ );
foreach(new RecursiveIteratorIterator($it) as $file)
{
$quach= explode(‘.’, $file);
if (in_array(strtolower(array_pop($quach)), $display))
echo “<img src=$file </img> <br/>”;
}
?>
///////////////////////////////////////////////////////////////
<?php
$path = realpath(‘uploads/’);
foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)) as $filename)
{
echo “$filename</br>”;
}
?>