一聚教程网:一个值得你收藏的教程网站

热门教程

php chdir() 函数

时间:2022-07-02 09:52:37 编辑:袖梨 来源:一聚教程网

语法: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.

热门栏目