finfo_buffer

(PHP 5 >= 5.3.0, PHP 7, PECL fileinfo >= 0.1.0) Return information about a string buffer string finfo_buffer ( resource $finfo, string $string = NULL [, int $options = FILEINFO_NONE [, resource $context = NULL ]] ) Procedural style Object oriented style public string finfo::buffer ( string $string = NULL [, int $options = FILEINFO_NONE [, resource $context = NULL ]] ) This function is used to get information about

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.

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

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

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

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

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.

chroot

(PHP 4 >= 4.0.5, PHP 5, PHP 7) Change the root directory bool chroot ( string $directory ) Changes the root directory of the current process to directory, and changes the current working directory to "/". This function is only available to GNU and BSD systems, and only when using the CLI, CGI or Embed SAPI. Also, this function requires root privileges. Parameters: directory

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: