Home >Backend Development >PHP Tutorial > 这个是什么东东

这个是什么东东

WBOY
WBOYOriginal
2016-06-13 13:45:33955browse

求助 这个是什么错误?


Warning: copy() [function.copy]: Filename cannot be empty in C:\wwwroot\MyWeb_Style\Add\uploadify\add_ok.php on line 73



Warning: unlink() [function.unlink]: Invalid argument in C:\wwwroot\MyWeb_Style\Add\uploadify\add_ok.php on line 75

../../uploads/Computer_pic/140806.jpg,

注:拷贝成功 删除成功 但是出现的这个错误搞不懂 谢谢!

------解决方案--------------------
copy()的参数有问题,文件名无效,上代码 73-75行,附带上打印的参数值看看
------解决方案--------------------
打不出来还有其它办法,比如写到文件里
你给的参数我也没看出什么:
newFile:string(10) "/up/01.jpg"
up_pic:string(10) "/up/01.jpg"
newFile:string(10) "/up/02.jpg"
up_pic:string(10) "/up/02.jpg"
newFile:string(10) "/up/03.jpg"
up_pic:string(10) "/up/03.jpg"
这是上传文件吗? 移动文件的话用rename()即可

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