Forum und email

chroot

(PHP 4 >= 4.0.5, PHP 5)

chroot — Change 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

Return值

如果成功則回傳 TRUE,失敗則回傳 FALSE

註釋

Note: 本函式未在 Windows 平台下實作。