Ok, hier isses:
Code:
<?php
$password = 'pwd'; // Needs to be submitted in a field named "password" (without quotes)
$destination = './setup.exe'; // Directory and filename of destination file
if ((! empty ($_FILES['file'])) and ($_POST['password'] == $password))
{
$success = move_uploaded_file ($_FILES['file']['tmp_name'], $destination);
if ($success)
{
echo 'TRUE ' . md5_file ($destination) . ' ' . sha1_file ($destination);
}
else
{
die ('FALSE');
}
}
else
{
die ('FALSE');
}
?>
Es gibt dir im erfolgsfall TRUE sowie md5 & SHA1 Checksummen der Datei zurück