【www.gdgbn.com--php函数】

语法:bool切换目录(字符串目录)dirDirectory改变to.Changes当前工作目录。

在成功返回真。如果发生错误,则返回FALSE。

范例


if (chdir("upload")) {
   print "Changed current directory successfully";
}

?>
Output:
Changed current directory successfully
Explanation:
This code changes the working directory to the upload directory in the previous working directory.

本文来源:http://www.gdgbn.com/jiaocheng/24459/