图片上传问题,鞠躬中~~~~~~~
程序如下,,,
报错
Warning: copy(../fun/friend/images/qq.jpg): failed to open stream: Permission denied in /www/friend/admin/addpicture.php on line 19
照片1上传失败
Warning: copy(../fun/friend/images/qq1.jpg): failed to open stream: Permission denied in /www/friend/admin/addpicture.php on line 25
照片2上传失败
////////////////////////////////////////////////////////////
$picfile="../fun/friend/images/".$pnick.".jpg"; $f=stripslashes($file);
if($file<>"none")
{
if(!copy($f,$picfile)){
echo "照片1上传失败";}
}
$picfile1="../fun/friend/images/".$pnick."1.jpg"; $f1=stripslashes($file1);
if($file1<>"none")
{
if(!copy($f1,$picfile1)){
echo "照片2上传失败";}
}
if($file=="none")
$picfile="";
$sql="UPDATE luru SET picture=\"$picfile\",renqi=\"$renqi\" where nick='$nick'";
$result = mysql_query($sql);
}
else{
echo "库中没有这个网友,请核实!";
}
}