require("$_SERVER[DOCUMENT_ROOT]mysql.php");
$id = $_GET["id"];
$result = mysql_query("SELECT * FROM Setting WHERE ID = \"$id\"");
$row = mysql_fetch_array($result);
switch ($_GET["action"])
{
case "update":
if (!unlink("$_SERVER[DOCUMENT_ROOT]setting/$row[Filename]"))
{
echo "Non è stato possibile cancellare il vecchio file.";
header("Refresh: 2.5; url=index.php");
exit();
}
错误是“警告:取消链接(/web/htdocs/www.vhannibal.net/home/setting/):是第 43 行 [...] 中的目录”,第 43 行是
if (!unlink("$_SERVER[DOCUMENT_ROOT]setting/$row[Filename]"))
它出什么问题了?