I have the following code below:
PHP:
<?php
$nome_temporario = $_FILES["Arquivo"]["tmp_name"];
$nome_real = $_FILES["Arquivo"]["name"];
copy($nome_temporario, "/public_html/publico/$nome_real");
?>
HTML:
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="file" name="Arquivo" id="Arquivo"/>
<input type="submit" value="Enviar"/>
<input type="reset" value="Apagar"/>
</form>
I would like to know what is wrong, because when I try to upload, it appears this error message:
Warning: copy (/public_html/publico/teste.txt) [function.copy]: failed to open stream: No such file or directory in /home/opeao802/public_html/upload/upload.php on line 4
p>