chdir() 函数改变当前的目录。此函数成功则返回 TRUE。失败则返回 FALSE,且抛出 E_WARNING 级别的错误。
实例代码
<?php if (chdir("upload")) { print "Changed current directory successfully"; } ?>
输出结果:
Changed current directory successfully Explanation: This code changes the working directory to the upload directory in the previous working directory.
以上就是php 改变当前的目录chdir() 函数的用法的详细内容,更多请关注php中文网其它相关文章!
已抢185284个
抢已抢66852个
抢已抢351967个
抢已抢665302个
抢已抢119756个
抢已抢19557个
抢