且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

将文件复制到另一个文件夹PHP

更新时间:2023-11-27 22:00:22

您可以使用复制()使用PHP复制文件:

You can use copy() to copy a file with PHP:

if (!copy('PATTERN/index.php', $Username.'/index.php')) {
    echo "failed to copy file...";
}

如果这不起作用,则可能是您的代码,访问权限或其他问题.没有您的代码和错误消息的准确描述(如果有),将很难为您提供帮助.

If this does not work, you might have a problem with your code, access rights, or something else. Without your code and the exact description of the error message (if any) it will be hard to help you.