以下是PHP图片上传代码,请问怎么修改成上传FLV视频文件的 QQ395240832求助啊
elseif($act=='make7_save'){!$_FILES['photo']['name']?showmsg('请上传图片!',1):"";require_o...
elseif ($act=='make7_save')
{
!$_FILES['photo']['name']?showmsg('请上传图片!',1):"";
require_once(QISHI_ROOT_PATH.'include/upload.php');
if (intval($_REQUEST['pid'])==0) showmsg('参数错误!',0);
$resume_basic=get_resume_basic(intval($_SESSION['uid']),intval($_REQUEST['pid']));
if (empty($resume_basic['photo_img']))
{
$setsqlarr['photo_audit']=$_CFG['audit_resume_photo'];
}
else
{
$_CFG['audit_edit_photo']!="-1"?$setsqlarr['photo_audit']=intval($_CFG['audit_edit_photo']):"";
}
$photo_dir=substr($_CFG['resume_photo_dir'],strlen($_CFG['site_dir']));
$photo_dir="../../".$photo_dir.date("Y/m/d/");
make_dir($photo_dir);
$setsqlarr['photo_img']=_asUpFiles($photo_dir, "photo",$_CFG['resume_photo_max'],'gif/jpg/bmp/png',true);
$setsqlarr['photo_img']=date("Y/m/d/").$setsqlarr['photo_img'];
!updatetable(table('resume'),$setsqlarr," id='".intval($_REQUEST['pid'])."' AND uid='".intval($_SESSION['uid'])."'")?showmsg("保存失败!",0):'';
check_resume($_SESSION['uid'],intval($_REQUEST['pid']));
header("Location: ?act=photo_cutting&pid=".intval($_REQUEST['pid']));
} 展开
{
!$_FILES['photo']['name']?showmsg('请上传图片!',1):"";
require_once(QISHI_ROOT_PATH.'include/upload.php');
if (intval($_REQUEST['pid'])==0) showmsg('参数错误!',0);
$resume_basic=get_resume_basic(intval($_SESSION['uid']),intval($_REQUEST['pid']));
if (empty($resume_basic['photo_img']))
{
$setsqlarr['photo_audit']=$_CFG['audit_resume_photo'];
}
else
{
$_CFG['audit_edit_photo']!="-1"?$setsqlarr['photo_audit']=intval($_CFG['audit_edit_photo']):"";
}
$photo_dir=substr($_CFG['resume_photo_dir'],strlen($_CFG['site_dir']));
$photo_dir="../../".$photo_dir.date("Y/m/d/");
make_dir($photo_dir);
$setsqlarr['photo_img']=_asUpFiles($photo_dir, "photo",$_CFG['resume_photo_max'],'gif/jpg/bmp/png',true);
$setsqlarr['photo_img']=date("Y/m/d/").$setsqlarr['photo_img'];
!updatetable(table('resume'),$setsqlarr," id='".intval($_REQUEST['pid'])."' AND uid='".intval($_SESSION['uid'])."'")?showmsg("保存失败!",0):'';
check_resume($_SESSION['uid'],intval($_REQUEST['pid']));
header("Location: ?act=photo_cutting&pid=".intval($_REQUEST['pid']));
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询