                                
<?php

//-- Description: 
//--   The idea of this function is to create an HTML <select> element
//--   (which is a "drop-down list" element) each of whose items in the
//--   list is a path to a directory on a web-server. Only those directories
//--   which are accessible from outside requests to the web-server should
//--   be displayed.

//-- See Also:


function fnDirectoryHtmlSelect($sRootDirectory)
{
  $aaTemp = '';
  $sResult = '';
  
  $sResult = "
    <select  name = 'directory'>";

  
  return $sResult;
} //-- function: fnRetrovoxParseCategoryPaths

function fnRecursivePathGatherer($sDirectoryPath)
{
    if ($dir = opendir($sDirectoryPath))
    {
      while (false !== ($file = readdir($dir)))
      {
        if ($file[0]==".") continue;
        if ($file[0]=="..") continue;
        if (is_dir($sDirectoryPath."/".$file))
        {
          $retval = array_merge($retval,walk_dir($path."/".$file));
        }
        else if (is_file($path."/".$file))
          $retval[]=$path."/".$file;
      }
      closedir($dir);
    }
    return $retval;

} //-- function fnRecursivePathGatherer


?>
                                        