chdir change directory Description boolchdir stringdirectory Changes PHP's current directory to directory. Returns &false; if unable to change directory, &true; otherwise. See also getcwd.