}
 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);
 echo '</pre>';
 echo '<p><em>There are ' . sizeof($contentsArray) . ' available files.</em></p>';
 ## --------------------------------------------------------
 $j = 0;
 $k = 0;
 for ($j = 0; $j < sizeof($contentsArray); $j++) {
     $pos = strpos($contentsArray[$j], ".wav");