I am using this peice of code:
$target = \'extracted/\' . $name[0]; $scan = scandir($target);
To scan the directory of a folder which is
Better to use DirectoryIterator
$path = 'extracted'; // '.' for current foreach (new DirectoryIterator($path) as $file) { if ($file->isDot()) continue; if ($file->isDir()) { print $file->getFilename() . ''; } }