Scan Directory Script

Scan Directory Script Is used to when you reload a folder or directory to will display inside folder / directory data.

Demo :

Create File : 
Scan Dir :  

Example :

If you need to reload folder or directory click in the above scan button and will display files or data at below of scan button otherwise no data at folder you create file at in the above file creation form.

Code :

Following code is use to Scan Directory Script core if you need to copy and use to your website.

$dir = '../file-and-directory-script/upload_files/scandir';
$fileList = scandir($dir) or die ("Not a directory");
foreach ($fileList as $file)
  if (is_file("$dir/$file") && $file != '.' && $file != '..')
    echo "$file: " . filesize("$dir/$file") . "\n";

In the above example $dir variable has been stored file path and in the second line we used to scandir() function and this function is used to scan folder or directory and foreach() function is used to will display files from inside of folder or directory.

Free Download Script :

If you need to Scan Directory Script click and download from following link.