Hola a todos, he hecho hace poco una web y en la administracion tenian para poder poner noticias con sus imagenes. El problema viene ahi, en la imagen, que yo uso el
Código PHP:
move_uploaded_file
. Si lo hago probandolo yo en local funciona, pero al subir la pagina a internet cuando intentan meter una noticia la imagen da un error asi:
Cita: Warning: move_uploaded_file(../Images/galeria/BUS.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /homepages/31/d291019613/htdocs/admin/gestion_inser_image.php on line 18
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpcZUR2u' to '../Images/galeria/BUS.jpg' in /homepages/31/d291019613/htdocs/admin/gestion_inser_image.php on line 18
Warning: Cannot modify header information - headers already sent by (output started at /homepages/31/d291019613/htdocs/admin/gestion_inser_image.php:18) in /homepages/31/d291019613/htdocs/admin/gestion_inser_image.php on line 30
En la lineas que dice lo que hay es esto:
Linea 18:
Código PHP:
move_uploaded_file($_FILES['archivo']['tmp_name'], "../Images/galeria/".$_FILES['archivo']['name']);
Linea 30:
Código PHP:
header("Location: menu_doc_image.php");
Quería saber si ese error es por el sitio donde tengo la web subida que tendra algo para que no puedan insertar objetos desde fuera o es por algun otro problema, y querría saber también si fuera problema del hosting si se podría arreglar.
Saludos, gracias.