02-17-2018, 01:08 PM
Who else does this on a daily basis??
PHP Code:
$dir = new DirectoryIterator($scriptPath);
foreach ($dir as $file){
if ($file->getExtension() == "scp"){
if (preg_match("/(points.*?)/i", $file)){
echo "Ignoring $file ... \n";
continue;
endif // <---------
echo "Scanning $file ... \n";
$fullPath = $scriptPath . $file;
$total += areadefExport($fullPath, $file, $conn);
}
}