valid()) { if (!$it->isDot()) { $fileName = $it->getSubPathName(); $fileDateDisplayMonth = substr($fileName, 0,2); $fileDateDisplayDay = substr($fileName, 3,2); $fileDateDisplayYear = substr($fileName, 6,4); $fileDateWork = $fileDateDisplayDay . "/" . $fileDateDisplayMonth . "/" . $fileDateDisplayYear; $fileDateDisplayDate = $fileDateDisplayYear . "/" . $fileDateDisplayMonth . "/" . $fileDateDisplayDay; $fileNameDisplayLen = strlen($fileName); $fileNameDisplay = substr($fileName, 11,$fileNameDisplayLen - 15); echo $fileDateWork . '  ' . $fileNameDisplay . '
'; /* echo '
NAME VARs: ' . $fileDateDisplayDate . '--' . $fileNameDisplay . '{}{}' . $fileNameDisplayLen; echo '
Display Name: ' . $fileNameDisplay; echo '
'; echo '
FILE NAME EXTENSION:' . substr($fileName, -4); echo '
'; echo '
--Month:' . $fileDateDisplayMonth; echo '
Day:' . $fileDateDisplayDay; echo '
Year:' . $fileDateDisplayYear; echo '
'; */ } $it->next(); } echo '
'; ?>