Directory Функции
PHP Manual

chroot

(PHP 4 >= 4.0.5, PHP 5)

chrootChange the root directory

Описание

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.

Параметри

directory

The new directory

Връщани стойности

Връща TRUE при успех или FALSE при неуспех.

Бележки

Забележка: Тази функция не е налична на Windows платформи.


Directory Функции
PHP Manual