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: Share on X (Opens in new window) X Share on Facebook (Opens in new window) Facebook Like Loading...