您好,欢迎访问一九零五行业门户网

php+Uploadify在win7下安装配置好了,也可以正常运行,但在linux下无法上传,该怎么解决

php+uploadify在win7下安装配置好了,也可以正常运行,但在linux下无法上传
php这里我用的是yii框架,应该没什么影响
/*
uploadify 后台处理方法
*/
public function actionuploadify(){
//设置上传目录
$path = ./uplode/video/;
//这里$_files为空
if (!empty($_files)) {
//得到上传的临时文件流
$tempfile = $_files['filedata']['tmp_name'];
//允许的文件后缀
$filetypes = array('avi','rmvb','mpg','wav');
//得到文件原名
$filename = iconv(utf-8,gb2312,$_files[filedata][name]);
$fileparts = pathinfo($_files['filedata']['name']);
//接受动态传值
$files=$_post['typecode'];
//最后保存服务器地址
if(!is_dir($path))
mkdir($path);
//判断singerinfo文件是否存在且不为空
$this->getsingfile();
if (move_uploaded_file($tempfile, $path.$filename)){
$myfile = explode(.,$filename);
$sql = $this->getfile($myfile[0],1);
if ($sql){
//songandsinger文档插入
$songsingerfile = ./uplode/image/songsinger.txt;
$this->getsongfile($myfile[0],$songsingerfile,dsongandsinger,ksingerid);
//songandtype文档插入
$songtypefile = ./uplode/image/songtype.txt;
$this->getsongfile($myfile[0],$songtypefile,dsongandtype,ksongtypeid);
//songandstyle文档插入
$songstylefile = ./uplode/image/songstyle.txt;
$this->getsongfile($myfile[0],$songstylefile,dsongandstyle,ksongstyleid);
echo $filename.文件上传成功,数据上传成功!;
}else{
echo $filename.文件上传成功,数据上传失败!;
}
//
}else{
echo $filename.上传失败!;
}
}
}

下面是html代码,上传a标签
上传
处理上传的js代码
baseurl; ?>/css/uploadify.css/>

------解决方案--------------------
$_files为空?
这是因为你的上传文件大于 php 设定的表单大小 post_max_size
其它类似信息

推荐信息