copy 拷贝文件 &reftitle.description; boolcopy stringfrom stringto resourcenullcontext&null; 将文件从 from 拷贝到 to 如果要移动文件的话,请使用 rename 函数。 &reftitle.parameters; from 源文件路径。 to 目标路径。如果 to 是一个 URL,则如果封装协议不支持覆盖已有的文件时拷贝操作会失败。 如果目标文件已存在,将会被覆盖。 context A valid context resource created with stream_context_create. &reftitle.returnvalues; &return.success; &reftitle.examples; <function>copy</function> 例子 ]]> &reftitle.seealso; move_uploaded_file rename The section of the manual about handling file uploads