Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/08/2011, 18:24
draash
 
Fecha de Ingreso: agosto-2011
Mensajes: 3
Antigüedad: 12 años, 8 meses
Puntos: 0
Respuesta: Error funcion copy() en servidor

Por favor alguien me puede decir cómo esto puede dar error aun haciendo todas las operaciones?? La imagen "origen" si existe... y la mueve pero sigue soltando el error

if(copy("peticiones/2.jpg","obras/2.jpg")){
if(unlink("peticiones/2.jpg")){
$bien="bien";
}
else{
$mal="mal";
}
if(chmod("obras/2.jpg", 0604)){
$bien ="bien";
}
else{
$mal="mal";
}
}

ERROR:

Warning: copy(peticiones/2.jpg): failed to open stream: No such file or directory in public_html/aceptar_peticion_subida.php on line 9 Call Stack: 0.0002 322208 1. {main}() public_html/aceptar_peticion_subida.php:0 0.0524 324040 2. copy() public_html/aceptar_peticion_subida.php:9