if ($h == "00" || $h == "01" || $h == "02" || $h == "03" || $h == "04" || $h == "05" || $h == "06" || $h == "07") {
     $hourwisedir = "08";
     $dir = $yesterday . "/" . $hourwisedir;
 }
 if ($h == "08" || $h == "09" || $h == "10" || $h == "11" || $h == "12" || $h == "13" || $h == "14" || $h == "15") {
     $hourwisedir = "16";
     $dir = $today . "/" . $hourwisedir;
 }
 if ($h == "16" || $h == "17" || $h == "18" || $h == "19" || $h == "20" || $h == "21" || $h == "22" || $h == "23") {
     $hourwisedir = "24";
     $dir = $today . "/" . $hourwisedir;
 }
 $dir = "one97/" . $dir;
 ## --------------------------------------------------------
 // Change directory
 $ftpObj->changeDir($dir);
 //$ftpObj->setCurrentPath($dir);
 if ($debug == true) {
     print "\n<BR>After changeDir-----";
     print_r($ftpObj->getMessages());
 }
 // Get folder contents
 $contentsArray = $ftpObj->getDirListing();
 if ($debug == true) {
     print "\n<BR>After Dir Listing-----";
     print_r($ftpObj->getMessages());
 }
 // Output our array of folder contents
 echo "<h4>AVAILABLE FILES</h4>";
 echo '<pre>';
 print_r($contentsArray);