错误提示:
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 }
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 }
mkdir('test.php',777);
否则只有那个用户创建的文件那个用户才能删除该文件