Cita:  
					Iniciado por abimaelrc  
  Fue un error mio, no me acordé del segundo parametro, debería ser algo así 
   
Código PHP:
Ver original- <?php 
- $file = 'foo.jpg'; 
- rename($file, 'nombre_nuevo' . $pathInfo['extension']); 
   <?
include("config.php");
$dcans = mysql_query("select * from canciones order by rand() LIMIT 25");
$totales = mysql_num_rows($dcans);
$n=0; while($dat_can = mysql_fetch_array($dcans)) { $n++; if($n == $total) { $title .= "".$dat_can[titulo].""; } else { $title .= "".$dat_can[titulo]."<br>"; }}
$file = '/';
$pathInfo = pathinfo($file);
rename($file, '<? echo $title ?>' . $pathInfo['extension']);
?> 
me da el mismo error :( :( :( 
Creo que no se puede cambiar el nombre masivamente a los archivos