Name
chroot
Synopsis
bool chroot(string path
)
Changes the root directory of the current process to
path
. You cannot use chroot( )
to restore the root directory to /
when running PHP in a web server environment. Returns
true
if the change was successful and
false
if not.
Get Programming PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.