<?php
if (isset($_FILES['datei']))
{
move_uploaded_file($_FILES['datei']['tmp_name'], 'upload/'.$_FILES['datei']['name']);
echo "Filee successfully uploaded.";
chmod($_FILES["datei"]["name"], 777);
echo "<p> Chmod successfully set!<br>";
}
?>
上传有效,但未设置 chmod。任何人都可以帮忙检查代码吗?