finfo_open

(PHP >= 5.3.0, PECL fileinfo >= 0.1.0) Create a new fileinfo resource resource finfo_open ([ int $options = FILEINFO_NONE [, string $magic_file = NULL ]] ) Procedural style Object oriented style (constructor): public finfo::__construct ([ int $options = FILEINFO_NONE [, string $magic_file = NULL ]] ) This function opens a magic database and returns its resource. Parameters: o

scandir

(PHP 5, PHP 7) List files and directories inside the specified path array scandir ( string $directory [, int $sorting_order = SCANDIR_SORT_ASCENDING [, resource $context ]] ) Returns an array of files and directories from the directory. Parameters: directory The directory that will be scanned. sorting_order By default, the sorted order

rewinddir

(PHP 4, PHP 5, PHP 7) Rewind directory handle void rewinddir ([ resource $dir_handle ] ) Resets the directory stream indicated by dir_handle to the beginning of the directory. Parameters: dir_handle The directory handle resource previously opened with opendir(). If the directory handle is not specified, the last link opened by opendir() is assumed.

getcwd

(PHP 4, PHP 5, PHP 7) Gets the current working directory string getcwd ( void ) Gets the current working directory. Returns: Returns the current working directory on success, or FALSE on failure. On some Unix variants, getcwd() will return FALSE if any one of the parent directories does not have the readable or search mode set, even if the current directory does. See chmod() for more information

closedir

(PHP 4, PHP 5, PHP 7) Close directory handle void closedir ([ resource $dir_handle ] ) Closes the directory stream indicated by dir_handle. The stream must have previously been opened by opendir(). Parameters: dir_handle The directory handle resource previously opened with opendir(). If the directory handle is not specified, the last link opened by opendir() is assumed.

dir

(PHP 4, PHP 5, PHP 7) Return an instance of the Directory class Directory dir ( string $directory [, resource $context ] ) A pseudo-object oriented mechanism for reading a directory. The given directory is opened. Parameters: directory Directory to open context Note: Context support was added with PHP 5.0.0. For a description of c

opendir

(PHP 4, PHP 5, PHP 7) Open directory handle resource opendir ( string $path [, resource $context ] ) Opens up a directory handle to be used in subsequent closedir(), readdir(), and rewinddir() calls. Parameters: path The directory path that is to be opened context For a description of the context parameter, refer to the streams section

readdir

(PHP 4, PHP 5, PHP 7) Read entry from directory handle string readdir ([ resource $dir_handle ] ) Returns the name of the next entry in the directory. The entries are returned in the order in which they are stored by the filesystem. Parameters: dir_handle The directory handle resource previously opened with opendir(). If the directory handle is not specified, the last lin

Directory::read

(PHP 4, PHP 5, PHP 7) Read entry from directory handle public string Directory::read ([ resource $dir_handle ] ) Same as readdir(), only dir_handle defaults to $this.

chdir

(PHP 4, PHP 5, PHP 7) Change directory bool chdir ( string $directory ) Changes PHP's current directory to directory. Parameters: directory The new current directory Returns: Returns TRUE on success or FALSE on failure. Exception: Throws an error of level E_WARNING on failure. Notes: