Saturday 16 February 2019

php - Message error: Warning: move_uploaded_file

Why am I getting this warning?




Warning: move_uploaded_file(../documentos/games/banner.jpg): failed to open stream: No such file or directory in C:\xampp\htdocs\admin\gameimage.php on line 11



Warning: move_uploaded_file(): Unable to move 'C:\xampp\tmp\php5AD3.tmp' to '../documentos/games/banner.jpg' in C:\xampp\htdocs\admin\gameimage.php on line 11





The code is:



  $nome_arquivo = $_FILES['userfile']['name'];
move_uploaded_file($_FILES['userfile']['tmp_name'], "../documentos/games/".$nome_arquivo);
?>



} else {
?>













No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...