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. Возвращает TRUE в случае успешного завершения, FALSE в случае возникновения ошибки..

Замечание: It's not wise to use this function when running in a webserver environment, because it's not possible to reset the root directory to / again at the end of the request. This function will only function correct when you run PHP as command line too. (CLI)

Замечание: Для Windows-платформ эта функция не реализована.