首页 > php函数 > php chdir() 函数

php chdir() 函数

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

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

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

范例


<?php

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.phprm.com/function/php-chdir.html

转载随意,但请附上文章地址:-)

标签:none

发表留言