Path helper in codeigniter

Path Helper

The Path Helper file contains functions that permits you to work with file paths on the server.

Loading this Helper

This helper is loaded using the following code:

Available Functions

The following functions are available:

set_realpath($path[, $check_existance = FALSE])

  • $path (string) – Path
  • $check_existance (bool) – Whether to check if the path actually exists
  • Returns: An absolute path
    Return type: string

    This function will return a server path without symbolic links or relative directory structures. An optional second argument will cause an error to be triggered if the path cannot be resolved.