chroot

(PHP 4 >= 4.0.5)

chroot -- Change the root directory

Description

bool chroot ( string directory)

Changes the root directory of the current process to directory. Palauttaa TRUE onnistuessaan, muutoin FALSE.

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

Huomaa: chroot() requires root privileges.

Huomaa: Tätä funktiota ei ole vielä implementoitu Windows-alustalle.