Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/02/2013, 15:58
camaron2004
 
Fecha de Ingreso: diciembre-2009
Mensajes: 128
Antigüedad: 15 años, 2 meses
Puntos: 0
Respuesta: Cambio de nombre de archivos

Hola, gracias por su respuesta, ya cheque dichas paginas y utilice el siguiente codigo:
Código PHP:
Ver original
  1. rename("/files/".$fol.".pdf", "/files/".$fol."-c.pdf");
  2.                 header("Location: home.php?num=$fol");

Dond la variable $fol es el nombre del archivo al que le quiero cambiar el nombre, de hecho solo deseo agregarle un guion y la letra c, pero me aparece el siguiente error:

Warning: rename(/files/10124.pdf,/files/10124-c.pdf) [function.rename]: No error in C:\AppServ\www\process.php on line 116

Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\process.php:116) in C:\AppServ\www\process.php on line 117

No se si me puedan ayudar con este error, de antemano gracias por su atencion.