PTM Logo Version 0.5.1 Beta
Home    SVN    Downloads    Documentation    Forum    Contact
This Site is 100%
Powered by PTM

SourceForge.net Logo
Documentation
I   Index
II   GNU GPL
III   Description
IV   Installation
V   Language Overview
VI   Tags
VII   Variables
VIII   Functions
  _PTM()
  _PTM_FILE()
  append_file_text()
  basic_header()
  delete_cookie()
  end_session()
  get_dir_list()
  get_file_text()
  is_secure()
  is_session()
  nohtml()
  redirect_header()
  session_add()
  session_delete()
  session_domain()
  session_id()
  session_name()
  session_path()
  session_secure()
  set_basic_header()
  set_cookie()
  set_redirect_header()
  start_session()
  update_session()
  write_file_text()
IX   Modules
Documentation
View / Download this file.
-----------------------
get_dir_list() FUNCTION
-----------------------

  ------------
  USAGE FORMAT
  ------------

    Where @dir_list is a returned list of files/directories:

    @dir_list = &get_dir_list();
    @dir_list = &get_dir_list($dir_path);

  -----------
  DESCRIPTION
  -----------

    Retreives a list of files/directories from either the current working
    directory or a given directory path.

  ---------
  ARGUMENTS
  ---------

    $dir_path

      OPTIONAL

      The path of the directory from which contents are to be listed. If no
      directory path is provided the current working directory is assumed.

  -------
  RETURNS
  -------

    A list (array) of the files/directories contained in the given directory.

  --------------
  USAGE EXAMPLES
  --------------

    ----------------------------------------------------------------------
    Example 1: Display the Contents of the Root Directory, Comma Seperated
    ----------------------------------------------------------------------

      UNIX:
      
        <?= join(', ', &get_dir_list('/')) =?>

      WINDOWS:

        <?= join(', ', &get_dir_list('C:/')) =?>
Home    SVN    Downloads    Documentation    Forum    Contact