大家帮忙分析一下错误原因
错误提示:
warning: Unlink failed (permission denied) in ...... on line 51
程序:
46 $DB_web->query($sql);
47 if($fdImgFlag)
48 {
49 if(file_exists("../product_images/".$IMG_VALUE))
50 {
51 unlink("../product_images/".$IMG_VALUE);
52 }
53 copy($fdPImg,"../product_images/p".$productID."_".$fdPImg_name);
54 $sql="update products set fdPImg='p".$productID."_".$fdPImg_name."' where id=$bookId";
55 $DB_web->query($sql);
56 }