编程论坛's Archiver

swm12345 发表于 2006-11-1 17:07

上传文件出现的错误

上传的模块在本地的服务器上好使,到了网上服务器出现错误了<BR>有的时候提示'失败'有的时候提示 Warning:  move_uploaded_file................<BR>这是处理上传的源代码,路径对,帮忙看看是怎么回事,用FTP传网站显示的地址是"/mubmk/kydt"<BR>&lt;?php<BR>$uploaddir='../kydt/';<BR>echo $_FILES['userfile']['name'];<BR>$uploadfile=$uploaddir.$_FILES['userfile']['name'];<BR>print "&lt;pre&gt;";<BR>if(move_uploaded_file($_FILES['userfile']['tmp_name'],$uploadfile)){<BR>    print "成功";<BR>}<BR>else{<BR>    print "失败";<BR>}<BR>?&gt;<BR>

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.