chroot

(PHP 4 >= 4.0.5, PHP 5)

chroot -- Change the root directory

Description

bool chroot ( string directory)

Changes the root directory of the current process to directory. Returnează TRUE în caz de succes, FALSE în caz contrar.

This function is only available if your system supports it and you're using the CLI, CGI or Embed SAPI.

Notã: chroot() requires root privileges.

Notã: Această funcție nu este implementată pe platformele Windows.