chroot change the root directory Description boolchroot stringdirectory Changes the root directory of the current process to directory. Returns &false; if unable to change the root directory, &true; otherwise. It's not wise to use this function when running in a webserver environment, because it's not possible to reset the root directory to / again at the end of the request. This function will only function correct when running as CGI this way. ¬e.no-windows;