Forum und email
chroot

chroot

(PHP 4 >= 4.0.5, PHP 5)

chroot -- Change the root directory

Popis

bool chroot ( string directory )

Changes the root directory of the current process to 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.

Seznam parametrů

directory

The new directory

Návratové hodnoty

Vrací TRUE při úspěchu, FALSE při selhání.

Poznámky

Poznámka: Tato funkce není implementována na platformách Windows.