PHP chroot April 26, 2012 Pramod T P It can be used to change the root directory Example <?php chroot(“YOUR-CHROOT-PATH”); echo getcwd(); ?> Output / Share this: Click to share on X (Opens in new window) X Click to share on Facebook (Opens in new window) Facebook Like Loading...