有什么办法可以让我有一个上传表单,用一个同名文件替换现有文件?
move_uploaded_file(), rename(), copy() etc will overwrite any pre-existing file with the new one (unless the file's permissions prevent such a thing). It's all there in the manual.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.