PHP 手冊
上一頁 |  | 下一頁

# chroot

(PHP 4 >= 4.0.5, PHP 5)

chroot -- Change the root directory

## Description

bool chroot ( string directory)

Changes the root directory of the current process to directory. 成功回傳`TRUE`失敗回傳`FALSE`。

This function is only available if your system supports it and you're using the CLI, CGI or Embed SAPI.

> 備注:chroot() requires root privileges.

> 備注:此函數不適用於 Windows 平台。

上一頁 | 最開頭 | 下一頁
chdir | 上一層 | dir