$image="/Uploads/Picture/2016-10-31/581713c3ebf47.png"
$tmpfiledir = $_SERVER["DOCUMENT_ROOT"].$image;
if(file_exists($tmpfiledir))
{
unlink($tmpfiledir); echo "1";
}
else
{
echo "没有该文件";
}
$image="/Uploads/Picture/2016-10-31/581713c3ebf47.png"
$tmpfiledir = $_SERVER["DOCUMENT_ROOT"].$image;
if(file_exists($tmpfiledir))
{
unlink($tmpfiledir); echo "1";
}
else
{
echo "没有该文件";
}