Copyright © 2014 by tutorialspoint
bool chroot ( string $directory )
Changes the root directory of the current process to the passed directory.
This function is only available if your system supports it and you're using the CLI, CGI or Embed SAPI. Also, this function requires root privileges.
PHP needs to be configured with --enable-chroot-func and on my machine only root can use it.
Returns TRUE on success or FALSE on failure.
Following is the usage of this function: