“PHP renombra archivos en el directorio” Código de respuesta

Cambiar el nombre del archivo PHP

 rename('old_filename.txt', 'new_filename.txt');
Beautiful Bug

PHP renombra archivos en el directorio

<?php rename ("/folder/file.ext", "newfile.ext"); ?>

The above doesn't rename the file within the folder, as you might assume, 
instead, it moves the file to whatever the PHP working directory is... 
Chances are you'll not find it in your FTP tree. 
Instead, use the following:

<?php rename ("/folder/file.ext", "/folder/newfile.ext"); ?>
Geeky Bravo

Respuestas similares a “PHP renombra archivos en el directorio”

Preguntas similares a “PHP renombra archivos en el directorio”

Más respuestas relacionadas con “PHP renombra archivos en el directorio” en PHP

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código