chdir

chdir -- ディレクトリを変更します

説明

int chdir(string directory);

PHP のカレント・ディレクトリを directory に変更します。ディレクトリを変更できなかった場合は FALSE を 返し、そうでなければ TRUE を返します。