Saturday, February 16, 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

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...