rename

(PHP 4, PHP 5, PHP 7) Renames a file or directory bool rename ( string $oldname, string $newname [, resource $context ] ) Attempts to rename oldname to newname, moving it between directories if necessary. If newname exists, it will be overwritten. Parameters: oldname Note: The old name. The wrapper used in oldname must match the wrapper used in newname.

realpath

(PHP 4, PHP 5, PHP 7) Returns canonicalized absolute pathname string realpath ( string $path ) realpath() expands all symbolic links and resolves references to '/./', '/../' and extra '/' characters in the input path and returns the canonicalized absolute pathname. Parameters: path The path being checked. Note: Whilst a path must be supplied, the value can be blank or

realpath_cache_size

(PHP 5 >= 5.3.2, PHP 7) Get realpath cache size int realpath_cache_size ( void ) Get the amount of memory used by the realpath cache. Returns: Returns how much memory realpath cache is using. Examples: realpath_cache_size() example <?php var_dump(realpath_cache_size()); ?> The above example will output somethi

realpath_cache_get

(PHP 5 >= 5.3.2, PHP 7) Get realpath cache entries array realpath_cache_get ( void ) Get the contents of the realpath cache. Returns: Returns an array of realpath cache entries. The keys are original path entries, and the values are arrays of data items, containing the resolved path, expiration date, and other options kept in the cache. Examples

readlink

(PHP 4, PHP 5, PHP 7) Returns the target of a symbolic link string readlink ( string $path ) readlink() does the same as the readlink C function. Parameters: path The symbolic link path. Returns: Returns the contents of the symbolic link path or FALSE on error. Changelog: 5.3.0 This functio

readfile

(PHP 4, PHP 5, PHP 7) Outputs a file int readfile ( string $filename [, bool $use_include_path = false [, resource $context ]] ) Reads a file and writes it to the output buffer. Parameters: filename The filename being read. use_include_path You can use the optional second parameter and set it to TRUE, if you want to search for the file

popen

(PHP 4, PHP 5, PHP 7) Opens process file pointer resource popen ( string $command, string $mode ) Opens a pipe to a process executed by forking the command given by command. Parameters: command The command mode The mode Returns: Returns a file pointer identical to that returned by fopen(), except that it is uni

pclose

(PHP 4, PHP 5, PHP 7) Closes process file pointer int pclose ( resource $handle ) Closes a file pointer to a pipe opened by popen(). Parameters: handle The file pointer must be valid, and must have been returned by a successful call to popen(). Returns: Returns the termination status of the process that was run. In case of an error then -1 is ret

pathinfo

(PHP 4 >= 4.0.3, PHP 5, PHP 7) Returns information about a file path mixed pathinfo ( string $path [, int $options = PATHINFO_DIRNAME | PATHINFO_BASENAME | PATHINFO_EXTENSION | PATHINFO_FILENAME ] ) pathinfo() returns information about path: either an associative array or a string, depending on options. Parameters: path The path to be parsed. op

parse_ini_string

(PHP 5 >= 5.3.0, PHP 7) Parse a configuration string array parse_ini_string ( string $ini [, bool $process_sections = false [, int $scanner_mode = INI_SCANNER_NORMAL ]] ) parse_ini_string() returns the settings in string ini in an associative array. The structure of the ini string is the same as the php.ini's. Parameters: ini The contents of the ini file being pars