Ver Mensaje Individual
  #10 (permalink)  
Antiguo 04/04/2008, 08:35
okram
Invitado
 
Mensajes: n/a
Puntos:
Re: Que significa es error??

@agressor, el problema no está ahí, pues el usar una variable para declarar otra no altera la primera.

@juanleonardo, prueba aplicando la función is_dir() para ver si el directorio al que vas a mover tu archivo existe.

Por otro lado, en http://www.php.net/manual/es/functio...file.php#77661 me topé con esto:

Cita:
when you get this 2 Warnings - paths are a real sample - ::

-
move_uploaded_file(/uploads/images/sample.png) [function.move-uploaded-file]: failed to open stream: No such file or directory in /scripts/php/system/upload-file.php on line X
-

and

-
move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/somefilename' to '/uploads/images/sample.png' in /scripts/php/system/upload-file.php on line X
-

probably the path '/uploads/images/sample.png' is incomplete, in my case the complet path is "/home/x-user/public_html/uploads/images/sample.png"

you can use getcwd() to know the current working directory.

:)
Saludos,