Home  >  Article  >  Backend Development  >  什么函数能够把文件从一个目录下转移到另外一个目录下_PHP

什么函数能够把文件从一个目录下转移到另外一个目录下_PHP

WBOY
WBOYOriginal
2016-06-01 12:27:15671browse

问:什么函数能够把文件从一个目录下转移到另外一个目录下?

答:PHP中没有直接转移的函数。不过你可以试着这样来做。

rename("a/ss.txt","b/ss.txt");
?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn