Erreur PHP - le Téléchargement d'un fichier

Je suis en train d'écrire un peu de PHP pour envoyer un fichier dans un dossier sur mon serveur. Voici ce que j'ai:

<?php
    if ( !empty($_FILES['file']['tmp_name']) ) {
        move_uploaded_file($_FILES['file']['tmp_name'], './' . $_FILES['file']['name']);
        header('Location: http://www.mywebsite.com/dump/');
        exit;
    }
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
    <head>
        <title>Dump Upload</title>
    </head>
    <body>
        <h1>Upload a File</h1>
        <form action="upload.php" enctype="multipart/form-data" method="post">
            <input type="hidden" name="MAX_FILE_SIZE" value="1000000000" />
            Select the File:<br /><input type="file" name="file" /><br />
            <input type="submit" value="Upload" />
        </form>
    </body>
</html>

J'obtiens ces erreurs:

Warning: move_uploaded_file(./test.txt) [function.move-uploaded-file]: failed to open stream: Permission denied in E:\inetpub\vhosts\mywebsite.com\httpdocs\dump\upload.php sur la ligne 3

Warning: move_uploaded_file() [function.move-uploaded-file]: Impossible de déplacer 'C:\WINDOWS\Temp\phpA30E.tmp' à './test.txt " dans E:\inetpub\vhosts\mywebsite.com\httpdocs\dump\upload.php sur la ligne 3

Warning: Cannot modify header information - headers already sent by (output started at E:\inetpub\vhosts\mywebsite.com\httpdocs\dump\upload.php:3) E:\inetpub\vhosts\mywebsite.com\httpdocs\dump\upload.php sur la ligne 4

La version de PHP 4.4.7
IIS en cours d'exécution sur une machine Windows. Ce fichier/dossier a 777 autorisations.

Des idées?

OriginalL'auteur Steve Willard | 2008-08-06