<?php
$filter = "2016.pdf";
$folder = '../academic/document/';
$proses = new RecursiveDirectoryIterator("$folder");
foreach(new RecursiveIteratorIterator($proses) as $file)
{
if (!((strpos(strtolower($file), $filter)) === false) || empty($filter))
{
$tampil[] = preg_replace("#/#", "/", $file) . "</br>";
}
}
sort($tampil);
print_r($tampil);
?>
$filter = "2016.pdf";
$folder = '../academic/document/';
$proses = new RecursiveDirectoryIterator("$folder");
foreach(new RecursiveIteratorIterator($proses) as $file)
{
if (!((strpos(strtolower($file), $filter)) === false) || empty($filter))
{
$tampil[] = preg_replace("#/#", "/", $file) . "</br>";
}
}
sort($tampil);
print_r($tampil);
?>
Comments
Post a Comment