Документ взят из кэша поисковой машины. Адрес оригинального документа : http://old.hcs.cmc.msu.ru/php/function.chroot.html
Дата изменения: Sun Feb 3 22:37:33 2002
Дата индексирования: Mon Oct 1 21:12:04 2012
Кодировка:
chroot

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. Returns FALSE if unable to change the root directory, TRUE otherwise.

Note: 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 running as CGI this way.