downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

dir> <chdir
Last updated: Sun, 25 Nov 2007

view this page in

chroot

(PHP 4 >= 4.0.5, PHP 5)

chroot — 改变根目录

说明

bool chroot ( string $directory )

将当前进程的根目录改变为 directory

本函数仅在系统支持且运行于 CLI,CGI 或嵌入 SAPI 版本时才能正确工作。此外本函数还需要 root 权限。

参数

directory

新目录

返回值

如果成功则返回 TRUE,失败则返回 FALSE

注释

Note: 本函数未在 Windows 平台下实现。



add a note add a note User Contributed Notes
chroot
There are no user contributed notes for this page.

dir> <chdir
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites