Upload file in a mistake folder

Hi. I want to upload a file in a folder.
I want to force an error loading (folder is not exist):
<?php
    $ruta= dirname(__FILE__)."/valor2/";
    $nombre_archivo = "FileOK";

    $carga = move_uploaded_file($_FILES['archivo']['tmp_name'], $ruta.$nombre_archivo.'.'."csv");
    if ($carga == FALSE) {
        $mensaje = "THERE ARE A ERROR";
    } else {
        $mensaje = "UPLOAD OK";
    }
?> 
PHP:
But I get two messages:
Warning: move_uploaded_file(C:\www/FileOK.csv): failed to...
HTML:
Upload file in a mistake folder

from PHP http://ift.tt/1UyqCUo
via IFTTT
Previous
Next Post »
Thanks for your comment