关于move_uploaded_file报错

 private function moveFile(){
     $destination=rtrim($this->filepath,'/').'/';
     $destination.=$this->name;
     move_uploaded_file($this->tmp_name,$destination);
     $this->newFileName=$destination;
    }

在使用此函数时,注意路径中最好全是英文名,如果有中文出现的话会出现报错,如果不想把中文改成英文,可以@move_uploaded_file($this->tmp_name,$destination);,把警告信息屏蔽掉

posted @ 2013-03-05 10:39  达也.  阅读(221)  评论(0)    收藏  举报