Upload-Script funtzt nicht :(



  • Hi,

    Ich hab ein PHP-Script auf meinem localen http (apache) server erstellt und das klappt alles wunderbar.

    Aber als ich das Script dann auf meinen Server geuppt hatte hat es nicht mehr gefuntzt!

    Folgender Fehler:

    Warning:  move_uploaded_file(): SAFE MODE Restriction in effect.  The script whose uid is 828 is not allowed to access / owned by uid 0 in /usr/local/apache/www/server_test/html/test/upload/upload.php on line 15
    Possible file upload attack!  Here's some debugging info:
    Array
    (
        [file] => Array
            (
                [name] => desktop.ini
                [type] => application/octet-stream
                [tmp_name] => /usr/local/apache/www/server_test/phptmp/phpUIG1L6
                [error] => 0
                [size] => 81
            )
    
    )
    

    Ich hab jedoch volle berechtigungen!!!
    Woran kann das denn sonst liegen ?

    Hier mal die Scripts:

    <form enctype="multipart/form-data" action="upload.php" method="post">
    <input type="hidden" name="max_file_size" value="500000">
    <input name="file" type="file" size="30">
    <input type="submit" name='submit' value="Upload">
    </form>
    

    und

    <?php
    
    $uploaddir = '/';
    
    print "<pre>";
    if (move_uploaded_file($_FILES['file']['tmp_name'], $uploaddir . $_FILES['file']['name'])) {
       print "File is valid, and was successfully uploaded.  Here's some more debugging info:\n";
       print_r($_FILES);
    } else {
       print "Possible file upload attack!  Here's some debugging info:\n";
       print_r($_FILES);
    }
    
    ?>
    

    kann mir da jemand helfen ?

    Ciao



  • Hat sich erledigt!


Anmelden zum Antworten